Skip to content

fix: resolve import, file refresh, patch diff, and ui/docs regressions#16020

Open
6crucified wants to merge 4 commits intoanomalyco:devfrom
6crucified:askr/fix-opencode-issue-pack
Open

fix: resolve import, file refresh, patch diff, and ui/docs regressions#16020
6crucified wants to merge 4 commits intoanomalyco:devfrom
6crucified:askr/fix-opencode-issue-pack

Conversation

@6crucified
Copy link
Copy Markdown

@6crucified 6crucified commented Mar 4, 2026

Issue for this PR

Closes #15797
Closes #15996
Closes #15897
Closes #14964
Closes #14965
Closes #15961

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

this fixes a batch of reported issues across cli/app/ui/docs:

  • opencode import now writes the current instance project_id and directory during import (and conflict update), so imported sessions are attached to the right project/worktree.
  • file tabs now refresh when a file.edited event comes in, so edits made by ai appear without reopening the tab.
  • apply_patch now reports final diff/files from post-write disk state, so formatter-side edits are included in the returned diff metadata.
  • tui theme startup only resolves system palette when theme is actually system (also removed debug noise).
  • permission action buttons in message footer now wrap instead of overflowing on narrow layouts.
  • skills docs were updated to match current implementation behavior (skills.paths, skills.urls, cache/output details).

why this works:

  • each fix is done at the source of the mismatch (import assignment, watcher event handling, post-write diff calculation, theme condition checks, css wrapping, docs content), with tests added/updated for the behavior changes.

How did you verify your code works?

Screenshots / recordings

not included yet. i can add a short recording for the ui behavior (#15996 / #14965) if maintainers want it.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@6crucified 6crucified requested a review from adamdotdevin as a code owner March 4, 2026 15:54
@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. needs:title labels Mar 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 4, 2026

Hey! Your PR title Fix import/session metadata, live file refresh, apply_patch final diff, and ui/docs regressions doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@6crucified 6crucified changed the title Fix import/session metadata, live file refresh, apply_patch final diff, and ui/docs regressions fix: resolve import, file refresh, patch diff, and ui/docs regressions Mar 4, 2026
@github-actions github-actions bot removed needs:compliance This means the issue will auto-close after 2 hours. needs:title labels Mar 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 4, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant