Show the answering model in the inspector and mark model switches on the strip - #8
Merged
Merged
Conversation
…the strip TranscriptMessage now carries providerID/modelID (it was already on OpenCode's own message, just never copied over), so the inspector shows a Model line for assistant turns and steps, not only branch headers. The Model lane's turn rule also thickens to a heavier glyph at the turn where the model actually switched, since colour there is already spoken for by kind (text/reasoning). Also fixes two `y`-copy papercuts found while testing this: a branch/separator row silently did nothing instead of saying there's nothing to copy, and OSC 52 "success" (which has no ack from the terminal) is no longer trusted alone — copyText always writes the local fallback file too, so a paste that silently didn't land still has one reliable place to read it from.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TranscriptMessagenow carries the assistant'sproviderID/modelID(it was already on OpenCode's own message, just never copied over), so the inspector shows aModelline for assistant turns/steps, not only branch headers.┃(instead of│) at the turn where the answering model actually switched — colour there is already spoken for by kind (text/reasoning), so a switch gets a shape change on the rule rather than a competing colour.yon a⎇branch row or separator silently did nothing; it now notifies there's nothing to copy there.copyTextnow always writes the local fallback file (.opencode/context-tree/last-copy.txt) too, clipboard hit or not — a paste that silently didn't land still has one reliable place to read it from.Test plan
bun run typecheckbun test(271 pass / 0 fail)/ctree branch <name> <provider/model>, confirmedTranscriptMessage.model,layoutEventStrip'smodelChanges, and the renderedModelinspector line end-to-end (both a scripted pty TUI run and a direct headless check against the productiontoTranscriptMessage/layoutEventStripcode)