Skip to content

Fix: reader view uses the pane's actual provider (opencode negation sweep) - #412

Merged
Juliusolsson05 merged 1 commit into
mainfrom
fix/opencode-reader-provider
Jul 6, 2026
Merged

Juliusolsson05 merged 1 commit into
mainfrom
fix/opencode-reader-provider

Conversation

@Juliusolsson05

Copy link
Copy Markdown
Owner

Last of the binary ? 'codex' : 'claude' negations that mishandle OpenCode. ReaderBody chose the screen-extractor provider with (meta?.kind === 'codex') ? 'codex' : 'claude', collapsing opencode to Claude.

Latent today (opencode has no PTY/screen, so extractAssistantInProgress returns '' for it regardless), but the negation would silently mis-extract the moment opencode grows screen text or the extractor changes. Now uses the pane's real kind (guarded by isAgentProviderKind; terminal/unknown → DEFAULT_PROVIDER).

Completes the sweep started by #410 (switch guard) and #411 (palette resume) — no binary claude/codex negations that could mishandle opencode remain in active paths.

Verification

  • tsc node+web → 0 · build ✓ · npm test → 170/170

🤖 Generated with Claude Code

ReaderBody chose the extractor provider with
`(meta?.kind === 'codex') ? 'codex' : 'claude'`, collapsing opencode (a
registered provider since phase 7) to Claude. Latent today — opencode has
no PTY/screen, so extractAssistantInProgress returns '' for it regardless
— but the negation would silently mis-extract the moment opencode grows
screen text or the extractor changes. Use the pane's real kind (guarded by
isAgentProviderKind; terminal/unknown fall back to DEFAULT_PROVIDER),
completing the sweep of binary claude/codex negations that mishandle
opencode.

Verified: tsc node+web 0; build ok; 170/170 tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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