You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d27dca3
Browse filesBrowse the repository at this point in the historyBrowse files
fix(chat): render step titles and compaction detail from real server fields
The opencode server's StepStartPart/StepFinishPart and CompactionPart carry no
`text`/`state` fields, so the client was reading non-existent fields and every
step rendered as "Untitled step" while compaction banners were blank.
- StepBlock now titles steps positionally ("Step N") and shows finish outcome
(reason · tokens · cost) from the fields the server actually sends; the
expanded view is built from titles so it always has content.
- CompactionBanner is now a status chip with Auto/Manual/Overflow badges and
an expand gate that only appears when the server attached detail.
- Added optional reason/cost/tokens/auto/overflow/tail_start_id to the Part
interface, matching the server schema.
- Extracted pairStepParts into src/lib/step-pairs.ts so it can be unit-tested
without react-native; added regression tests for textless server parts.
Tests: 398 pass, 0 fail. Typecheck and lint clean.
0 commit comments