You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(antigravity): keep saved subagent transcript text valid Unicode - #41374
A saved Antigravity subagent transcript can show a broken character before the truncation ellipsis. This happens when a step or serialized tool argument crosses its UTF-16 text limit halfway through an emoji.
Change
When truncating a transcript field, drop the incomplete character before adding the existing ellipsis. A complete character that fits within the limit is kept.
Scope
Small fix in the server's saved JSONL transcript reader. #40794 changes output in live ACP updates, and #39855 handles the byte window between transcript records. A targeted search found no equivalent fix for the saved step and tool-argument text caps.
Verification
I found this by replaying a native-format SQLite parent record and JSONL child transcript through readAntigravityChildWork. The original and minimal fixtures fail on base and pass with the fix.
Saved transcript field
Before
After
Step text at the 4,000-unit limit
Isolated U+D83D before the ellipsis
Valid Unicode
Tool input at the 1,000-unit limit
Isolated U+D83D before the ellipsis
Valid Unicode
Emoji entirely inside either limit
Retained
Retained
The existing transcript-tail test now checks the exact clipped step and tool input. On a source-derived copy of the shared limiter, fast-check passed 200 generated cases, Jazzer.js ran 300 iterations, and Stryker killed 9 of 10 mutants. The surviving regex removes the final anchor and is equivalent for well-formed input. Fallow passed on a two-file snapshot with limited dependency coverage. CodeScene's advisory gate flagged test length, while cyclomatic complexity decreased and production code reported no degradation.
Linux only. A temporary native-format fixture provides the runtime evidence. No live Antigravity session was used.
vp run check:changed --concurrency 1 passed with 15 tests, typecheck, format, lint, Knip and GraphQL after a frozen-lockfile install. Normal commit hooks passed.
Independent reviews: Gemini 4 Neon medium on Antigravity and Opus 5.5 high approved the diff.
Reviewed with sol-loop: 1 round with GPT-6.2 Sol on high. Sol verdict: approved.
Created with GPT-6.2 Sol in Codex through T3 Code.
The reason will be displayed to describe this comment to others. Learn more.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
No actionable comments were generated in the recent review.
Walkthrough
The truncation logic removes a trailing high surrogate before adding an ellipsis. The test uses multibyte content and checks truncated step text and tool input.
Saved subagent transcripts will no longer end with half an emoji when text is truncated. The change is small, localized, and covered by an updated test, so merge risk is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "fix(antigravity): keep saved subagent transcript text valid Unicode" matches the main change. The change drops a trailing high surrogate when capText truncates saved transcript step text an…
Description check
The description follows the template's main sections: Problem, Change, Scope, and Verification. It states the bug (an isolated surrogate before the ellipsis), the fix (drop the incomplete character be…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "fix(antigravity): keep saved subagent transcript text valid Unicode" matches the main change. The change drops a trailing high surrogate when capText truncates saved transcript step text and tool input, so the output stays valid Unicode. The title is a conventional commit, specific, and names the affected component.
Full details: Description check
Explanation
The description follows the template's main sections: Problem, Change, Scope, and Verification. It states the bug (an isolated surrogate before the ellipsis), the fix (drop the incomplete character before the ellipsis), and a link-based scope rationale (#40794 and #39855). Verification is detailed, with specific tests, fixtures, and observed before/after results. It does not link a bug issue directly, and the Scope section does not say whether a maintainer requested the PR. It also includes an agent attribution line, as the template asks. These gaps are minor, so the description is mostly complete.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
This branch has not been deployed
No deployments
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
size:XS0-9 changed lines (additions + deletions).vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
2 participants
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.
Problem
A saved Antigravity subagent transcript can show a broken character before the truncation ellipsis. This happens when a step or serialized tool argument crosses its UTF-16 text limit halfway through an emoji.
Change
When truncating a transcript field, drop the incomplete character before adding the existing ellipsis. A complete character that fits within the limit is kept.
Scope
Small fix in the server's saved JSONL transcript reader. #40794 changes output in live ACP updates, and #39855 handles the byte window between transcript records. A targeted search found no equivalent fix for the saved step and tool-argument text caps.
Verification
I found this by replaying a native-format SQLite parent record and JSONL child transcript through
readAntigravityChildWork. The original and minimal fixtures fail on base and pass with the fix.The existing transcript-tail test now checks the exact clipped step and tool input. On a source-derived copy of the shared limiter, fast-check passed 200 generated cases, Jazzer.js ran 300 iterations, and Stryker killed 9 of 10 mutants. The surviving regex removes the final anchor and is equivalent for well-formed input. Fallow passed on a two-file snapshot with limited dependency coverage. CodeScene's advisory gate flagged test length, while cyclomatic complexity decreased and production code reported no degradation.
Linux only. A temporary native-format fixture provides the runtime evidence. No live Antigravity session was used.
vp run check:changed --concurrency 1passed with 15 tests, typecheck, format, lint, Knip and GraphQL after a frozen-lockfile install. Normal commit hooks passed.Independent reviews: Gemini 4 Neon medium on Antigravity and Opus 5.5 high approved the diff.
Reviewed with sol-loop: 1 round with GPT-6.2 Sol on high. Sol verdict: approved.
Created with GPT-6.2 Sol in Codex through T3 Code.