Bash live tail keyed by command text #207

Open
opened 2026-11-21 12:36:51 +00:00 by johannes · 0 comments
Owner

Location: crates/hx-core/src/lib.rs, ToolState bash tail map
What is hacky: the live-output map is keyed by command text, so two identical concurrent commands share one tail.
Proper fix: key by tool call id once ToolCtx carries it.
Original comment: "ponytail: keyed by command text, so two identical commands running at once share a tail; key by call id once ToolCtx carries it."

Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).

Location: crates/hx-core/src/lib.rs, `ToolState` bash tail map What is hacky: the live-output map is keyed by command text, so two identical concurrent commands share one tail. Proper fix: key by tool call id once `ToolCtx` carries it. Original comment: "ponytail: keyed by command text, so two identical commands running at once share a tail; key by call id once ToolCtx carries it." Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).
johannes added the core label 2026-11-21 12:36:51 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#207