Repository navigation
fix(agy): detect and answer clipped tall questions and Write-in (v0.4.227) - #268
Merged
Merged
Conversation
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.
Summary
Fixes
agy(Antigravity CLI) question detection (blockedstatus), decision dialog capture, andWrite-in...free-text answering when tall questions exceed the terminal viewport height (observed live on 43-row panep5), plus version bump tov0.4.227.Root Cause
agyquestion exceeds the terminal viewport height, Ink clipsQuestion/───/Question X/Y:off the top before writing to the PTY (never appearing in visible or scrollback lines).agyview.HasCurrentFooter(status detection) andscreenprompt.parseAgy(decision capture) requiredQuestion X/Y:to be visible above the options.1. 推奨:/2. ...) also interfered with top-down option scanning.Changes
internal/agyview/tail.go,internal/detect/manifests/antigravity.toml: AddedOptionRow/HasWriteInOptionBlockand clipped-question footer recognition while continuing to reject permission prompts, brokenQuestionheaders, non-1/1 short footers, and screens withoutWrite-in....internal/screenprompt/agy.go,internal/screenprompt/parse.go: RefactoredparseAgybottom-up from the active footer (↑/↓ Navigateorenter Submit[ All] · esc Back+Your answer:), keeping column-0 numbered body bullets in the body, locatingYour answer:structurally below the option block (immune to literal"Question"/"Your answer:"inside user drafts), stripping multi-line wrapped○ Thought for ...lines while preserving Japanese●bullets, failing closed (return nil) when all visible body text is clipped off, and addingMatchesClippedAgyEditforWrite-in...editor-open transitions.internal/server/screen_prompts.go,internal/server/screen_answer.go,internal/server/screen_agy_answer.go: Prefer untruncated scrollback capture when available and allowMatchesClippedAgyEditonly during activeWrite-in...editor delivery.cmd/ikesu/main.go: Bumpedversionfrom0.4.226to0.4.227.Astra Review (Round 1 & Round 2)
TruncatedNoticesignature override (P1), addedMatchesClippedAgyEditfor untruncated→clipped Write-in open (P2), hardenedYour answer:editor lookup against literal"Question"/"Your answer:"in drafts (P2), and narrowedisClippedBodyStopto preserve Japanese●bullets (P2).nil(fail-closed) inparseAgywhenvisibleBody == ""(status detection still marks paneblocked).MatchesClippedAgyEditto always reject emptycurrBodyand rejectenter Submit All · esc Backon non-finalQuestion 1/Nprompts.○ Thought for ...continuation stripping.Write-in...editor-open window (when Ink clips top lines without scrolling them into scrollback),MatchesClippedAgyEditrelies on non-empty body suffix + identical options + zero external input (same suffix-verification model as existingagyTextMatches).Verification
go test -count=1 ./internal/agyview ./internal/detect ./internal/screenprompt(0.24s / 0.40s / 0.72s),go test -count=1 -run TestAgy ./internal/server(28.29s),go build ./cmd/ikesu— all PASS.scripts/test-go.py --mode both --packages-at-once 2):normal: exit 0 (all packages PASS).race: all changed and remaining packages PASS; unrelatedinternal/runtimehit known CPU-contention timing flakeTestPaintLinkScanStaysNearTheViewportOnAHugeLogicalLine, immediately re-verified solo withscripts/test-go.py --mode race ./internal/runtime-> PASS (73.323s, exit 0).