Tool Call Card Alignment
Nucleic-Session: FFDE42E0-22AB-4478-B2E2-FF69B2753CEE Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -15,11 +15,17 @@ struct TranscriptRow: View {
|
|||||||
case .thinking(let text):
|
case .thinking(let text):
|
||||||
ThinkingRow(text: text)
|
ThinkingRow(text: text)
|
||||||
case .tool(let group):
|
case .tool(let group):
|
||||||
// A lone subagent spawn reads as its own gold subagent card (type, task, status, and
|
// A completed AskUserQuestion reads as a pretty "You answered" Q&A card; a git-commit
|
||||||
// its nested activity on expand); a host_exec call reads as a structured host card
|
// pipeline as a structured commit card; a host_exec call as a host card (purpose +
|
||||||
// (purpose + command + breakdown); every other tool is a plain collapsible card.
|
// command + breakdown); a lone subagent spawn as its own gold subagent card; every
|
||||||
|
// other tool — and an as-yet-unanswered question — is a plain collapsible card. Mirrors
|
||||||
|
// the Mac's `toolRow` routing so each family reads the same on both platforms.
|
||||||
if group.isOrchestration {
|
if group.isOrchestration {
|
||||||
SubagentCard(group: group)
|
SubagentCard(group: group)
|
||||||
|
} else if let card = answeredQuestionCard(group) {
|
||||||
|
card
|
||||||
|
} else if let card = gitCommitRowCard(group) {
|
||||||
|
card
|
||||||
} else if group.isHostExec {
|
} else if group.isHostExec {
|
||||||
HostExecToolCard(group: group)
|
HostExecToolCard(group: group)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user