Skip to content

feat(native): a command run with ! is one message with its output - #1278

Merged
omartelo merged 1 commit into
mainfrom
feat/chat-own-command
Dec 4, 2026
Merged

omartelo merged 1 commit into
mainfrom
feat/chat-own-command

Conversation

@omartelo

@omartelo omartelo commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

What changes

A command the person runs with ! in the chat is now one message on their side: the command and, under it, what it printed. Before, the balloon held !git pull as typed and the output hung on the agent's side, with a stray 0ms.

  • The terminal glyph takes the !'s place, and the command is in mono. It shimmers while it runs.
  • The time it took stands before the message's time, "2s · 14:41", and only from a second up. It counts from the person's message, since Claude Code tells of the call only once it ended, which is where the 0ms came from.
  • A failure turns the glyph and the output red; one that printed nothing says it failed.
  • Output past 20 lines keeps its "Show N more lines".
  • Copy takes the command without the !.

Providers

Claude Code, Codex and opencode, the ones whose chat runs a person's command. In the others a ! line still goes to the agent as text, as before.

No new copy.

Test plan

  • Local gate: backend and native/
  • New test over the states: running with no call told yet, quick, slow, silent, failed, failed with no output
  • chat_shell_test.go changed because the contract did: the call is in the person's message, not in a row under it. chat_life_test.go only follows a changed function signature
  • Headless shots of the states

The command stood in the person's balloon as typed and its output under it on the agent's side, with a stray 0ms. Both are now one balloon on the person's side, with the time it took when it is a second or more.
@omartelo
omartelo merged commit 7b33c73 into main Dec 4, 2026
7 of 8 checks passed
@omartelo
omartelo deleted the feat/chat-own-command branch December 4, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant