feat(tui-go): drop inline tool-start rows (keep results only)
The ⏵ tool-start row doubled up with the ✓/✎ result row in OUTPUT. Drop it inline — tool starts still show in the tool list + EVENTS panel. The inline transcript now carries only outcomes: ✎ writes, ✓/✗ tool results, ⌘/✕ approvals, ⊞/⊟ grants. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -173,10 +173,8 @@ func PreviewFrame(kind string, w, h int) string {
|
|||||||
m.routerMessages["04a546aa"] = []RouterEntry{
|
m.routerMessages["04a546aa"] = []RouterEntry{
|
||||||
{Role: "user", Content: "run the healthcheck and write the script"},
|
{Role: "user", Content: "run the healthcheck and write the script"},
|
||||||
{Role: "router", Content: "I'll create the script, then run it."},
|
{Role: "router", Content: "I'll create the script, then run it."},
|
||||||
{Role: "action", Icon: "⏵", Content: "file_write"},
|
|
||||||
{Role: "action", Icon: "✎", Content: "wrote healthcheck.sh (+4 −0)"},
|
{Role: "action", Icon: "✎", Content: "wrote healthcheck.sh (+4 −0)"},
|
||||||
{Role: "action", Icon: "⌘", Content: "approved file_write"},
|
{Role: "action", Icon: "⌘", Content: "approved file_write"},
|
||||||
{Role: "action", Icon: "⏵", Content: "shell"},
|
|
||||||
{Role: "action", Icon: "✓", Content: "shell · exit 0"},
|
{Role: "action", Icon: "✓", Content: "shell · exit 0"},
|
||||||
{Role: "action", Icon: "⊞", Content: "granted file_write · global"},
|
{Role: "action", Icon: "⊞", Content: "granted file_write · global"},
|
||||||
{Role: "router", Content: "Done — script written and the healthcheck passes."},
|
{Role: "router", Content: "Done — script written and the healthcheck passes."},
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ const (
|
|||||||
type RouterEntry struct {
|
type RouterEntry struct {
|
||||||
Role string // user | router | tool | narration | narration_llm | action
|
Role string // user | router | tool | narration | narration_llm | action
|
||||||
Content string
|
Content string
|
||||||
Icon string // action role only: the gutter glyph (⏵ ✓ ✎ ⌘ ✕ ⊞ ⊟)
|
Icon string // action role only: the gutter glyph (✓ ✎ ✗ ⌘ ✕ ⊞ ⊟)
|
||||||
Metrics *TurnMetrics
|
Metrics *TurnMetrics
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -198,7 +198,8 @@ func (m *Model) applyServer(msg protocol.ServerMessage) {
|
|||||||
}
|
}
|
||||||
s.LastEventAt = nowMillis()
|
s.LastEventAt = nowMillis()
|
||||||
}
|
}
|
||||||
m.appendAction(msg.SessionID, "⏵", msg.ToolName)
|
// Tool-start is not surfaced inline (it doubles up with the ✓/✎ result row); it
|
||||||
|
// stays in the tool list + EVENTS panel.
|
||||||
case protocol.TypeToolCompleted:
|
case protocol.TypeToolCompleted:
|
||||||
if s := m.session(msg.SessionID); s != nil {
|
if s := m.session(msg.SessionID); s != nil {
|
||||||
s.Active = false
|
s.Active = false
|
||||||
|
|||||||
Reference in New Issue
Block a user