[PR #12957] feat(tui): display detailed status messages in prompt #14450

Open
opened 2026-02-16 18:19:14 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12957

State: open
Merged: No


Summary

Displays detailed status messages in the TUI prompt (e.g., "Reading: src/index.ts", "Thinking...", "Generating response...").

Changes

  • Added SessionStatusMessage utility to format and redact tool inputs.
  • Updated SessionProcessor to emit granular status updates for various session events (start, text gen, step start/finish).
  • Updated Prompt component to display the formatted message.
  • Updated SDK types and OpenAPI spec for the new message field in SessionStatus.
  • After this PR:
    Before this PR After this PR
    e03afada24b34645329731cc557dc2c3 image

Fixes #12958

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12957 **State:** open **Merged:** No --- ## Summary Displays detailed status messages in the TUI prompt (e.g., "Reading: src/index.ts", "Thinking...", "Generating response..."). ## Changes - Added `SessionStatusMessage` utility to format and redact tool inputs. - Updated `SessionProcessor` to emit granular status updates for various session events (start, text gen, step start/finish). - Updated `Prompt` component to display the formatted message. - Updated SDK types and OpenAPI spec for the new `message` field in `SessionStatus`. - After this PR: Before this PR | After this PR -- | -- <img width="902" height="234" alt="e03afada24b34645329731cc557dc2c3" src="https://github.com/user-attachments/assets/3af2b7ab-a78e-458c-9d76-492ee55448d1" /> | <img width="1692" height="356" alt="image" src="https://github.com/user-attachments/assets/76b8d38e-fa4f-43b9-a829-260f92003e70" /> Fixes #12958
yindo added the pull-request label 2026-02-16 18:19:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14450