Skip to content

Release v0.0.30: support OpenCode 2.3 - #45

Open
Tarquinen wants to merge 5 commits into
devfrom
fix/opencode-2.3
Open

Tarquinen wants to merge 5 commits into
devfrom
fix/opencode-2.3

Conversation

@Tarquinen

Copy link
Copy Markdown
Owner

Gets the plugin and its tests working on OpenCode 2.3.2, and bumps the version to 0.0.30 so the reader crash fix already on dev can ship (#44).

  • Reader crash (TUI crashes when opening a shell entry whose job no longer exists #44): the fix is already on dev in c8f41c7 (SyntaxStyle.create now gets an owner). Reproduced in tmux with the published 0.0.29 and confirmed fixed with this branch.
  • Prompt history: moving forward through history did nothing when the prompt had wide characters, because OpenCode checks the cursor in display width.
  • Transcript history: moving up past the loaded messages stalled, because OpenCode changed how it keeps the view in place when older messages load.
  • Deps: OpenCode 2.3.2, OpenTUI 0.8.4 (the version OpenCode 2.3.2 uses). Two tests needed the new resource owner argument.
  • E2E: 15 scenarios failed on OpenCode 2.3.2. The rest were test-side: the default transcript verbosity changed, the TUI config watcher now honors OPENCODE_DISABLE_FILEWATCHER, and OpenCode's own redo no longer brings back attachments.

All 79 e2e scenarios pass locally on OpenCode 2.3.2.

OpenCode only moves to the next history entry when the cursor sits at the
end of the text measured in display width, so set the cursor that way.
OpenCode now anchors the view itself when older messages are prepended.
Waiting for the old scroll compensation stalled navigation for good.
- pin medium verbosity where scenarios relied on the old default
- let the TUI watch its config so unloading Vim takes effect
- only check redo of attachments' text, since OpenCode's own redo
  does not bring the attachment back
- watch the command palette's first group heading in dialog-focus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant