Repository navigation
[3830 by Claude Opus 5.5] # Antigravity task runs show only the final summary: no execution events, no live activity - #3840
Conversation
I've implemented all five changes from issue #3830, plus the tests the issue lists. A live `agy` run still needs your maintainer check, because there's no agy login here. Test status: a run of 86 Antigravity-related test files gave 1422 passes and 2 failures. Both failures were caused by my change and are now fixed: - Read-only directory: in this container `/tmp/git-processor` is read-only, and creating the per-run transcript directory there threw, which failed the task launch (`test/analysisGitAccess.test.ts`). Now, if the directory can't be created, the worker logs a warning and the run goes ahead without a transcript. - Security check: `test/securityInputHardening.test.ts` checks that `AntigravityAgent.ts` uses `randomBytes(8)`. That code moved to a new file, so the test now checks the new file, which still uses `randomBytes(8)`. The re-run of those files and the new tests passed (88 of 88). Lint and typecheck are clean for core and api. What changed 1. Transcript export: each task run gets its own private transcript directory, mounted read-write at `/tmp/propr-antigravity-transcript`. That path is outside every read-only mount, and `/tmp/git-processor` stays read-only. - The new helpers are in `antigravityTranscriptPaths.ts`. - If the host sees the transcript root at a different path, set the new `PROPR_ANTIGRAVITY_TRANSCRIPT_HOST_ROOT`. The default root needs nothing, since the launcher mounts `/tmp/git-processor` at the same path on the host and in the worker. - The entrypoint now warns when there's no transcript to export. It also deletes anything already sitting at the destination before copying, rather than writing through it. - The worker warns when a transcript was expected but is missing, and only reads it if it's a regular file. 2. Stream output for tasks: task runs now use `--output-format stream-json`. The stdin prompt and `--print-timeout` are unchanged, and the final summary comes from the `result` response. Analysis runs keep plain text output. 3. Full trace: the analysis filter no longer applies to task logs. The new `antigravityConversationLog.ts` turns transcript steps into Claude-shaped events: - planner responses become text plus thinking. - tool steps become `tool_use`/`tool_result` pairs, with the command or target parsed out of the content, and `is_error` set when the step failed. - `ERROR_MESSAGE` becomes an error, and `USER_INPUT` becomes a user message. - Without a transcript, the streamed steps are used at step granularity. - Two parser changes: `SYSTEM` is now accepted as a transcript source, and the transcript summary only comes from planner responses, not command output. 4. Live view: the new `redisOutputParserAntigravity.ts` handles the `event:` envelope. Response text becomes one thought per step, and other steps become tool activity. The final result adds its response only if it differs from what was already streamed, and token usage counts the larger of the step sum and the result total. Goals use this same path, so they get live tool activity too. The old message handling is unchanged. 5. Cost attribution: the cost export matches an execution to its log row by session. Antigravity runs used to record no session (`'unknown'` on the execution row, null on the log row), so nothing matched and the agent and execution type showed as null. The stream's conversation ID is now the session ID, and a run that reports none gets a generated `antigravity-run-…` ID. New tests - The fixture is saved at `test/fixtures/antigravity/agy-1.5-transcript-tools.jsonl`. - `test/antigravityTaskTranscript.test.ts` covers: - the read-write mount, and that it isn't under a read-only mount. - the result processing: tool pairs, `is_error` on the failed step, summary, token usage, session ID. - an entrypoint smoke test. - Smoke test caveat: this container has neither Docker nor root, so the smoke test runs the real entrypoint against a simulated container filesystem built from the real mount arguments. Stubbed `id`, `su-exec` and `agy` stand in for root and the CLI. With main's mount arguments swapped back in, the test fails because the host transcript is missing. - `test/llmMetricsRecording.test.ts` checks that the persisted log details hold the tool calls and the error step, without double-counting tokens. - `test/redisOutputParser.test.ts` checks thoughts, tool steps, result handling and token usage from stream-json. - All existing analysis and summary tests pass unchanged. There's nothing visual to preview, so I didn't create one. ProPR-Agent: claude/claude-opus-5-5
|
/ultrafix goal=8 max=8 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 8) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThis PR addresses transcript export, live Antigravity activity, and session-based cost attribution. It needs a localized correctness fix before merge. ✅ Writable transcript export — The dedicated bind mount places exported transcripts outside the read-only shared git mount. ✅ Consistent session identity — The generated fallback session ID is shared by the returned execution result and implementation log. ✅ Persistence coverage — Added tests verify tool inputs, result pairing, error persistence, and preservation of run-level token totals. This review is static; no commands or tests were run. The issue description is explicitly truncated, so assessment uses its visible requirements. Current checks have no failures and six pending results. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Preserve unfinished tool states
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Test completed-view fallback renderingAdd a consumer-level test that passes stream-derived conversation logs through metrics persistence and completed-task rendering when transcript export fails. Include a terminal response that adds text beyond the streamed narration. The builder stores that response in a ScoreThe implementation substantially addresses the visible objective and adds focused coverage, but persisted tool results currently misrepresent interrupted activity. The required correction is localized. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit b1846ea
Summary of ChangesI fixed F1. An Antigravity tool step that never finished now gets saved as a tool call with no result, so a run that times out no longer records a successful result for a command that never completed. What changed (
Tests
The two test files pass (17 of 17). I also put the old version of the file back and re-ran them: both of the previously changed tests fail, so they do catch the bug. Lint and the core typecheck are clean. I made no preview images because this only changes the saved log records, not the UI code. Review digestRisk-tiered paths
Diff size: 3 files changed, +56/−10 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
I fixed F1. An Antigravity tool step that never finished now gets saved as a tool call with no result, so a run that times out no longer records a successful result for a command that never completed. **What changed** (`packages/core/src/agents/impl/utils/antigravityConversationLog.ts`) - I added the list of finishing states the live view already uses: `DONE`, `ERROR`, `FAILED`, `CANCELED`, `CANCELLED`. - **Streamed steps:** if a step's latest update isn't one of those states (for example still `RUNNING`), only the tool call is kept. Finished steps get a result, marked as an error unless the state is `DONE`. Before, only `ERROR` was marked as an error, so `FAILED` and cancelled steps were saved as successes. - **Transcript steps:** the same rule applies. One exception: a step whose text says `Encountered error in step execution:` gets an error result, even if its status isn't a finishing one. A transcript step with no status at all is treated as unfinished. - I checked the other places that build tool results. The live view already waited for a finishing state, and the older message format carries an explicit success/error status, so neither needed a change. **Tests** - `test/antigravityTaskTranscript.test.ts` and `test/llmMetricsRecording.test.ts` now expect the `RUNNING` step 23 in the fixture to keep its tool call with no result. The remaining error flags are `[false, false, true, false]`. - Two new tests cover: - **Streamed steps:** a step that runs then finishes, a step stuck in `RUNNING`, a cancelled step, and a `FAILED` step. - **Transcript steps:** `RUNNING`, no status, a `RUNNING` step that reported an error, and `CANCELLED`. The two test files pass (17 of 17). I also put the old version of the file back and re-ran them: both of the previously changed tests fail, so they do catch the bug. Lint and the core typecheck are clean. I made no preview images because this only changes the saved log records, not the UI code. PR: #3840 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5 ProPR-Agent: claude/claude-opus-5-5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
|
I tested 8921289 with a real
Two problems left, both in how tool steps are named and shown: 1. Persisted tool events have no name and no input. All 5 2. The live parser takes the step type as the tool name. Feeding the real stream below to So the user prompt shows up as a tool call, every tool is named The stream-json records already carry everything needed (real agy 1.5.15 output from this image, trimmed):
Please:
{"event":"init","conversation_id":"32c6d960-6ab9-4122-ad6d-30730d00518e","init":{"model":"gemini-3.8-flash-medium","cwd":"/home/node/workspace","tools":["ask_custom_permission","ask_permission","ask_question","browser_click_element","browser_drag_pixel_to_pixel","…"],"permission_mode":"always-proceed"}}
{"event":"step_update","step_update":{"conversation_id":"32c6d960-6ab9-4122-ad6d-30730d00518e","step_index":0,"state":"DONE","step_type":"user_input"}}
{"event":"step_update","step_update":{"conversation_id":"32c6d960-6ab9-4122-ad6d-30730d00518e","step_index":1,"state":"DONE","step_type":"agent_response","duration_seconds":6.841932236,"usage":{"input_tokens":8747,"output_tokens":488,"thinking_tokens":450,"cache_read_tokens":0,"total_tokens":9235}}}
{"event":"step_update","step_update":{"conversation_id":"32c6d960-6ab9-4122-ad6d-30730d00518e","step_index":2,"state":"ACTIVE","step_type":"tool","tool_name":"run_command","tool_info":{"name":"run_command","parameters":{"CommandLine":"ls -la"}}}}
{"event":"step_update","step_update":{"conversation_id":"32c6d960-6ab9-4122-ad6d-30730d00518e","step_index":2,"state":"DONE","step_type":"tool","tool_name":"run_command","duration_seconds":0.011933021,"tool_info":{"name":"run_command","parameters":{"CommandLine":"ls -la"},"output":"Created At: 2026-11-27T15:21:05Z\nCompleted At: 2026-11-27T15:21:05Z\nCommand exited with code 0.\n\nCommand output:\ntotal 16\r\ndrwxr-xr-x 1 node users 70 Nov 27 15:20 .\r\ndrwxr-xr-x 1 node node 2 Nov 27 15:20 ..\r\n-rw-r--r-- 1 node users 122 Nov 27 09:57 .git\r\n-rw-r--r-- 1 node users 66 Nov 27 15:20 math.js\r\n-rw-r--r-- 1 node users 170 Nov 27 15:20 math.test.js\r\n-rw-r--r-- 1 node users 67 Nov 27 09:57 package.json\r\n"}}}
{"event":"step_update","step_update":{"conversation_id":"32c6d960-6ab9-4122-ad6d-30730d00518e","step_index":3,"state":"DONE","step_type":"agent_response","duration_seconds":4.8304342590000005,"usage":{"input_tokens":2768,"output_tokens":322,"thinking_tokens":250,"cache_read_tokens":6711,"total_tokens":3090}}}
{"event":"step_update","step_update":{"conversation_id":"32c6d960-6ab9-4122-ad6d-30730d00518e","step_index":4,"state":"ACTIVE","step_type":"tool","tool_name":"write_file","tool_info":{"name":"write_file","parameters":{"Path":"/home/node/workspace/notes.txt"}}}}
{"event":"step_update","step_update":{"conversation_id":"32c6d960-6ab9-4122-ad6d-30730d00518e","step_index":4,"state":"DONE","step_type":"tool","tool_name":"write_file","duration_seconds":0.780081897,"tool_info":{"name":"write_file","parameters":{"Path":"/home/node/workspace/notes.txt"}}}}
{"event":"step_update","step_update":{"conversation_id":"32c6d960-6ab9-4122-ad6d-30730d00518e","step_index":5,"state":"ACTIVE","step_type":"tool","tool_name":"run_command","tool_info":{"name":"run_command","parameters":{"CommandLine":"cat missing.txt"}}}}
{"event":"step_update","step_update":{"conversation_id":"32c6d960-6ab9-4122-ad6d-30730d00518e","step_index":5,"state":"DONE","step_type":"tool","tool_name":"run_command","duration_seconds":0.039406023,"tool_info":{"name":"run_command","parameters":{"CommandLine":"cat missing.txt"},"output":"Created At: 2026-11-27T15:21:10Z\nCompleted At: 2026-11-27T15:21:10Z\nCommand exited with code 1.\n\nCommand output:\ncat: missing.txt: No such file or directory\r\n"}}}
{"event":"step_update","step_update":{"conversation_id":"32c6d960-6ab9-4122-ad6d-30730d00518e","step_index":6,"state":"ACTIVE","step_type":"agent_response","text_delta":"1. **Listed workspace files**:\n ```\n .git\n "}}
{"event":"step_update","step_update":{"conversation_id":"32c6d960-6ab9-4122-ad6d-30730d00518e","step_index":6,"state":"DONE","step_type":"agent_response","text_delta":" math.js\n math.test.js\n package.json\n ```\n\n2. **Created file**:\n Created [notes.txt](file:///home/node/workspace/notes.txt) containing `hi`.\n\n3. **Ran `cat missing.txt`**:\n ```\n cat: missing.txt: No such file or directory\n ```\n *(Command exited with return code 1 as `missing.txt` does not exist)*\n","duration_seconds":5.155683724,"usage":{"input_tokens":2511,"output_tokens":289,"thinking_tokens":173,"cache_read_tokens":7441,"total_tokens":2800}}}
{"event":"result","result":{"conversation_id":"32c6d960-6ab9-4122-ad6d-30730d00518e","status":"SUCCESS","response":"1. **Listed workspace files**:\n ```\n .git\n math.js\n math.test.js\n package.json\n ```\n\n2. **Created file**:\n Created [notes.txt](file:///home/node/workspace/notes.txt) containing `hi`.\n\n3.","duration_seconds":16.920569691,"num_turns":1,"usage":{"input_tokens":14026,"output_tokens":1099,"thinking_tokens":873,"cache_read_tokens":14152,"total_tokens":15125}}} |
|
✅ Applied the requested follow-up changes in commit 64b2728 Summary of ChangesBoth problems are fixed. Tool steps are now built from the stream-json Saved log (
Live parser (
Changes beyond your list:
Tests
Results
No preview was captured: it would need the API with Redis and a headless browser, which this container doesn't have. The manifest notes what to install. Review digestRisk-tiered paths
Diff size: 7 files changed, +203/−38 lines Visual previewSuggested agent tools
🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Both problems are fixed. Tool steps are now built from the stream-json `step_update` records in the saved log and in the live view. Your stream fixture now gives `run_command {CommandLine:"ls -la"}`, `write_file {Path:…/notes.txt}` and `run_command {CommandLine:"cat missing.txt"}`. Each has its real output, and the `cat` step is flagged as an error. I haven't repeated your real `agy` run with this change; the tests below use your fixture.
**Saved log** (`antigravityConversationLog.ts`, `AntigravityAgent.ts`)
- When the stdout stream has any `step_type: "tool"` steps, the saved log is built from the stream. Otherwise it falls back to the transcript as before. That stops the `GENERIC` / `{}` tool events.
- `tool_use` takes its `name` from `tool_name` and its `input` from `tool_info.parameters`. `tool_result` holds the `tool_info.output` text.
- A step keeps its name and parameters even if a later update for it leaves them out.
- `is_error` is true when the state isn't `DONE`, or when the output says `Command exited with code N` with N ≠ 0. The transcript fallback uses the same rule, so your exit-code-128 case is now an error there too.
- `user_input` and any other non-tool, non-response steps are skipped.
**Live parser** (`redisOutputParserAntigravity.ts`)
- Only `tool` steps, keyed by step index, become tool events: the first update gives the `tool_use` with name and parameters, and `DONE`/`ERROR` gives the `tool_result` with the output and the same error rule.
- `user_input` no longer appears as a tool.
- `agent_response` text becomes the assistant's narration. The final `result.response` is shown only when no narration streamed for that conversation.
**Changes beyond your list:**
- **Final response not repeated in the saved log either.** I applied the same narration rule there. Your fixture's `result.response` is cut off at "3.", so it would otherwise have been saved as a second, partial copy of the answer.
- **Breaking change for the old step format.** Steps in the older format, where the step type was the tool's name (e.g. `RUN_COMMAND`), no longer become tool events in either path. Two existing tests used that format, and I rewrote them to the real `tool` shape.
**Tests**
- I added your stream as `test/fixtures/antigravity/agy-1.5-stream-tools.jsonl`, unchanged.
- The saved-log test runs the fixture through `processExecutionResult` with the GENERIC transcript also present. It checks tool names, parameters, outputs, that only the exit-code-1 step is an error, that there are no `GENERIC` or `user_input` tools, and that the narration appears once.
- Smaller tests cover the exit-code-128 transcript case, the live path against the fixture (including token totals), and showing `result.response` when nothing streamed.
**Results**
- Passing: the two changed test files (30/0), all root `antigravity*` tests (60/0), `llmMetricsRecording` (11/0), core `antigravityConfig` (54/0), and the 6 `mcpAgentActivity` tests (that process doesn't exit afterwards, a known hang in this package). Type checks and lint for core and api are clean.
- When I first ran everything in one parallel batch, 4 tests failed. That was the setup, not the code: the entrypoint tests clashed when run in parallel, and `llmMetricsRecording` needs `--experimental-test-module-mocks`. Run alone, they all pass.
No preview was captured: it would need the API with Redis and a headless browser, which this container doesn't have. The manifest notes what to install.
PR: #3840
Comment by: @integry (ID: 7221966298)
Model: Claude Opus 5.5
ProPR-Agent: claude/claude-opus-5-5
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR adds writable transcript export, structured live activity, persisted tool exchanges, and session-based cost attribution. It needs a localized correctness fix before merging. ✅ Transcript export isolation — Each run gets a separate writable mount outside the read-only shared git tree, with cleanup and explicit export warnings. ✅ Tool result fidelity — Persisted tool updates retain parameters and output, preserve unfinished calls without fabricated results, and recognize nonzero command exits. This is a static review of the supplied code; no commands were run. The issue description is explicitly truncated, so requirements beyond its visible text could not be assessed. Current checks show no failures and three pending checks. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F2: 🔴 Preserve final responses after intermediate narration
SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Share tool interpretation rulesThe live projector and persisted-log converter separately implement terminal states, tool metadata extraction, and command-exit detection. A small shared helper could prevent their behavior diverging; the persisted path already merges metadata across updates while the live path uses individual snapshots. This is optional cleanup, since duplication alone does not demonstrate another merge blocker. ScoreThe implementation addresses the main observability gaps with focused fixtures and persistence coverage, but final-response suppression can discard meaningful output. The remaining correction is localized; checks currently report no failures. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit c41b0d4
Summary of ChangesI fixed F2. Both converters now keep the final answer when the terminal response differs from the narration that came before it. What was wrong: the live view ( The fix: each path now tracks the final narration, meaning the text streamed since the conversation started or since its last new tool step. Narration before a tool call counts as progress, not as the answer. A small helper,
The tracking follows a tool step's first update only, so a late "finished" update for an earlier tool doesn't wipe narration that came after it. Each package has its own copy of the helper; I didn't add a shared module for it. Tests:
Verification: Separate finding, not changed: There are no previews: this changes how output is parsed, and there is no new screen state to capture. Review digestRisk-tiered paths
Diff size: 4 files changed, +106/−18 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
I fixed F2. Both converters now keep the final answer when the terminal response differs from the narration that came before it. **What was wrong:** the live view (`packages/api/services/redisOutputParserAntigravity.ts`) and the saved conversation log (`packages/core/src/agents/impl/utils/antigravityConversationLog.ts`) both dropped `result.response` whenever the conversation had streamed *any* narration. A run that said "I will inspect the repository." and later gave its real answer only in the result ended up showing just the progress text. **The fix:** each path now tracks the *final narration*, meaning the text streamed since the conversation started or since its last new tool step. Narration before a tool call counts as progress, not as the answer. A small helper, `repeatsFinalNarration`, in each file decides what to drop: - The response is suppressed only if it is empty, equal to the final narration (ignoring surrounding whitespace), or a cut-off copy of it. The truncated `result.response` in the real agy 1.5 stream fixture is still not repeated. - Any other response is kept: in the live view as a thought, and in the saved log as the `result` entry's text. That includes a response that adds to the final narration. The tracking follows a tool step's first update only, so a late "finished" update for an earlier tool doesn't wipe narration that came after it. Each package has its own copy of the helper; I didn't add a shared module for it. **Tests:** - `test/redisOutputParser.test.ts`: the existing test that expected "Done. Added subtract.\n\nAll tests pass." to be dropped now expects it to be kept. I added two tests. One covers progress narration, then a tool step, then an answer step with usage but no text, then the answer only in `result.response`, which is now kept. The other covers a final answer after tools that the result repeats (with extra whitespace), which is not repeated. - `test/antigravityTaskTranscript.test.ts`: one new test runs the same shape through `buildAntigravityConversationLog`. It covers a distinct final answer (kept), an exact duplicate (dropped), a cut-off copy (dropped) and an extended answer (kept). **Verification:** `redisOutputParser`, `antigravityTaskTranscript` and `llmMetricsRecording` all pass. With the two source files reset to HEAD, the new tests and the updated one fail as expected. ESLint with zero warnings allowed passes, and `tsc --noEmit` is clean for both `packages/core` and `packages/api`. **Separate finding, not changed:** `antigravityOutputParser.ts` has an older analysis-filter rule that suppresses a terminal response only when it exactly matches all the narration streamed for the conversation. It isn't part of this PR's changes, so I left it alone. There are no previews: this changes how output is parsed, and there is no new screen state to capture. PR: #3840 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5 ProPR-Agent: claude/claude-opus-5-5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR addresses task streaming, transcript export, persisted tool activity, and session-based cost attribution. The implementation is cohesive and appears ready to merge within the supplied scope, conditional on pending checks completing successfully. ✅ Usable transcript export — A dedicated writable mount carries transcripts outside the read-only workspace mounts, with explicit export warnings and cleanup. ✅ Structured tool persistence — Stream updates are merged into named tool calls and results; unfinished calls remain unfinished, and nonzero command exits are marked as errors. ✅ Focused regression coverage — Added fixtures and tests cover transcript fallback, real stream tool parameters, usage totals, and final-response deduplication. This was a static review of the supplied complete diff and surrounding excerpts; no commands or tests were run. The linked issue body is truncated, so requirements beyond its visible text could not be assessed. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S3: 🟢 Test final-answer rendering end to endAdd coverage passing a result-only final answer through conversation conversion, metrics persistence, and S4: 🟢 Maintain incremental usage totals
ScoreThe changes directly address the visible objective with substantial targeted coverage and no verified merge blocker. Current checks show zero failures, with five still pending; runtime behavior was not independently tested during this review. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #3830
Branch:
3830/claude-opus-5-5-antigravity-task-runs-sho-20261127-1440-1soCommits: ✅ Changes committed (8921289)
AI Processing Completed
Execution Details:
Summary:
I've implemented all five changes from issue #3830, plus the tests the issue lists. A live
agyrun still needs your maintainer check, because there's no agy login here.Test status: a run of 86 Antigravity-related test files gave 1422 passes and 2 failures. Both failures were caused by my change and are now fixed:
/tmp/git-processoris read-only, and creating the per-run transcript directory there threw, which failed the task launch (test/analysisGitAccess.test.ts). Now, if the directory can't be created, the worker logs a warning and the run goes ahead without a transcript.test/securityInputHardening.test.tschecks thatAntigravityAgent.tsusesrandomBytes(8). That code moved to a new file, so the test now checks the new file, which still usesrandomBytes(8).The re-run of those files and the new tests passed (88 of 88). Lint and typecheck are clean for core and api.
What changed
/tmp/propr-antigravity-transcript. That path is outside every read-only mount, and/tmp/git-processorstays read-only.antigravityTranscriptPaths.ts.PROPR_ANTIGRAVITY_TRANSCRIPT_HOST_ROOT. The default root needs nothing, since the launcher mounts/tmp/git-processorat the same path on the host and in the worker.--output-format stream-json. The stdin prompt and--print-timeoutare unchanged, and the final summary comes from theresultresponse. Analysis runs keep plain text output.antigravityConversationLog.tsturns transcript steps into Claude-shaped events:tool_use/tool_resultpairs, with the command or target parsed out of the content, andis_errorset when the step failed.ERROR_MESSAGEbecomes an error, andUSER_INPUTbecomes a user message.SYSTEMis now accepted as a transcript source, and the transcript summary only comes from planner responses, not command output.redisOutputParserAntigravity.tshandles theevent:envelope. Response text becomes one thought per step, and other steps become tool activity. The final result adds its response only if it differs from what was already streamed, and token usage counts the larger of the step sum and the result total. Goals use this same path, so they get live tool activity too. The old message handling is unchanged.'unknown'on the execution row, null on the log row), so nothing matched and the agent and execution type showed as null. The stream's conversation ID is now the session ID, and a run that reports none gets a generatedantigravity-run-…ID.New tests
test/fixtures/antigravity/agy-1.5-transcript-tools.jsonl.test/antigravityTaskTranscript.test.tscovers:is_erroron the failed step, summary, token usage, session ID.id,su-execandagystand in for root and the CLI. With main's mount arguments swapped back in, the test fails because the host transcript is missing.test/llmMetricsRecording.test.tschecks that the persisted log details hold the tool calls and the error step, without double-counting tokens.test/redisOutputParser.test.tschecks thoughts, tool steps, result handling and token usage from stream-json.There's nothing visual to preview, so I didn't create one.
Review digest
Risk-tiered paths
packages/api/services/redisOutputParser.ts(+10/−0)packages/api/services/redisOutputParserAntigravity.ts(added, +167/−0)packages/core/src/agents/impl/AntigravityAgent.ts(+32/−29)packages/core/src/agents/impl/utils/antigravityConversationLog.ts(added, +144/−0)packages/core/src/agents/impl/utils/antigravityDockerArgsBuilder.ts(+3/−1)packages/core/src/agents/impl/utils/antigravityOutputParser.ts(+7/−6)packages/core/src/agents/impl/utils/antigravityTranscriptPaths.ts(added, +83/−0)scripts/antigravity-entrypoint.sh(+12/−2)test/antigravityTaskTranscript.test.ts(added, +227/−0)test/fixtures/antigravity/agy-1.5-transcript-tools.jsonl(added, +11/−0)test/llmMetricsRecording.test.ts(+25/−0)test/redisOutputParser.test.ts(+46/−0)test/securityInputHardening.test.ts(+6/−1)Diff size: 13 files changed, +773/−39 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3830.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!