Repository navigation
Use plain words for the setup and restart lines in the work log - #461
Open
officialasishkumar wants to merge 1 commit into
Open
officialasishkumar wants to merge 1 commit into
officialasishkumar wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
bootRowmaps the known server stages to plain words: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: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 failtsc --noEmitinfrontend: passesbiome linton the changed files: no findingsOpen in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.