Skip to content

Use plain words for the setup and restart lines in the work log - #461

Open
officialasishkumar wants to merge 1 commit into
useagenthq:mainfrom
officialasishkumar:feature/plain-setup-lines
Open

officialasishkumar wants to merge 1 commit into
useagenthq:mainfrom
officialasishkumar:feature/plain-setup-lines

Conversation

@officialasishkumar

@officialasishkumar officialasishkumar commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

By opening this pull request you agree to the Contributor License Agreement. On your first pull request a bot asks you to sign it with a one-line comment.

Fixes #340

The first line of a task's work log read "Sandbox ready in 6s". While setup ran, it showed the server's own stage labels, such as "Provisioning cloud sandbox" or "Resuming thread sandbox 1a2b3c4d" with an internal id. A task picked up after a server restart showed "Reconciling after a restart" with "the turn may still be completing".

What changed

All in frontend/components/chat/turn-trace-model.ts:

  • Finished setup line: reads "Ready in 6s". The CPU and memory detail stays.

  • Setup line while it runs: bootRow maps the known server stages to plain words:

    Server label Shown as
    Preparing context and runtime, Preparing chat context Getting ready
    Provisioning cloud sandbox Starting a computer for this task
    Resuming thread sandbox 1a2b3c4d Waking up this task's computer
    Activating sandbox image, this can take a few minutes Getting the computer ready, this can take a few minutes
    Preparing browser, tools, and integrations; Preparing Pi runtime and integrations Setting up tools

    A stage with no plain form, such as "Running Codex", is shown as the server wrote it. The mapping runs when the line is shown, so turns recorded earlier read the same way.

  • Restart line: now reads "Picking this task back up after a server restart", with the detail "it may still be finishing".

Tests

  • turn-trace-model.test.ts:
    • the folded line reads "Ready in 6s"
    • every setup stage above maps to its plain words, and an unknown stage passes through
    • the restart row is running while live and done once settled, and its words contain neither "reconcil" nor "turn"
  • engine-fixtures.test.tsx: the Chat fixture's live setup line now reads "Getting ready".

Checks run locally with Bun 1.3.14:

  • cd frontend && bun run test: 2053 pass, 0 fail
  • tsc --noEmit in frontend: passes
  • biome lint on the changed files: no findings

Show it working
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The first line of a task's work log read "Sandbox ready in 6s", and while
setup ran it showed the server's own stage labels, such as "Provisioning
cloud sandbox" or "Resuming thread sandbox 1a2b3c4d" with an internal id. A
task picked up after a server restart showed "Reconciling after a restart"
with "the turn may still be completing".

The folded setup line now reads "Ready in 6s" once the computer is up (the
CPU and memory detail stays), and while setup runs the known stages map to
plain words:

- Preparing context and runtime, Preparing chat context: Getting ready
- Provisioning cloud sandbox: Starting a computer for this task
- Resuming thread sandbox <id>: Waking up this task's computer
- Activating sandbox image: Getting the computer ready, this can take a
  few minutes
- Preparing browser, tools, and integrations, Preparing Pi runtime and
  integrations: Setting up tools

A stage with no plain form, such as "Running Codex", is shown as the server
wrote it. The mapping runs when the line is shown, so turns already recorded
read the same way. The restart line now reads "Picking this task back up
after a server restart", with "it may still be finishing".

Closes useagenthq#340
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.

Use plain words for the setup and restart lines in the work log

1 participant