Skip to content

Label in-flight transcript activity with present tense - #12

Merged
eivindjonassen merged 1 commit into
mainfrom
tense-aware-transcript-labels
Aug 30, 2026
Merged

Label in-flight transcript activity with present tense#12
eivindjonassen merged 1 commit into
mainfrom
tense-aware-transcript-labels

Conversation

@eivindjonassen

Copy link
Copy Markdown
Member

Summary

Transcript activity labels used past tense from the first streamed byte. Reasoning said THOUGHT before any text existed, an exploration group said Explored while its searches were still running, and a live shell message said Shell. Labels now follow the actual state and settle once the activity ends.

  • Reasoning: THINKING / Thinking in flight, THOUGHT / Thought when done. Settled from part time.completed, with the message completion time as a fallback so a REST snapshot that omits part timing cannot strand a finished thought as Thinking.
  • Exploration group: Exploring while any tool is running or streaming, Explored otherwise.
  • Shell message: Running while status === "running", Ran for every terminal state. Previously timeout and killed fell through to a bare Shell.

Group labels Edited, Ran shell, Used Skill, and Used X needed no change. groupAssistantParts only collapses a run when every tool is completed, and single in-flight tools render plain nouns.

Testing

  • pnpm check green: lint, typecheck, 299 tests, iOS and Android Hermes exports.
  • New tests cover each flip: reasoning rerender, message-level settlement fallback, exploration group with a running search, and shell running to exited.
  • Integration fixture reasoning parts gained time: { created, completed } to match real snapshot shape.

Deploy note

An EAS Update was published from this tree to the preview branch at runtime version 0.1.4 before the branch was cut, so preview builds are already serving this change. Production is untouched.

Reasoning, exploration, and shell labels now reflect whether the activity is
still running. Reasoning settles from THINKING/Thinking to THOUGHT/Thought,
exploration from Exploring to Explored, and running shells from Running to Ran.
Settled reasoning falls back to the message completion time when a snapshot
omits the part completion time.
@eivindjonassen
eivindjonassen merged commit 044f4a6 into main Aug 30, 2026
2 checks passed
@eivindjonassen
eivindjonassen deleted the tense-aware-transcript-labels branch August 30, 2026 19:03
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