fix(gstr3b): wait 5 s, then re-click once when the portal ignored the click - #392
Merged
Merged
Conversation
…meout Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
… click Live, GSTR-3B captures either finished within 1.5 s or produced nothing in 20 s, and a manual retry then succeeded. A timeout with no browser download from the tab now gets one more click (owner-approved), within the same 20 s total. Any download seen keeps the existing review path. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…cessful one Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
lamemustafa
marked this pull request as ready for review
September 21, 2026 12:00
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
lamemustafa
added a commit
that referenced
this pull request
Sep 21, 2026
…ng probe per capture Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
44 tasks
lamemustafa
added a commit
that referenced
this pull request
Sep 21, 2026
…als (#393) * test(signals): pin that the #391 and #392 signals survive durable persistence Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(signals): register the dashboard-reopen and GSTR-3B re-click signals One unregistered token rejects a target's whole signal array and records the non-resumable durable-status rejection, so a successful re-click or a named dashboard stop would have left discarding the plan as the only exit. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
44 tasks
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
Part of #386; the automatic re-click was approved by the owner on 2026-09-21.
A live "Everything last year" run measured GSTR-3B PDF captures as bimodal: 38 captured in 219–1549 ms (median 362 ms), and 8 produced nothing for the full 20 s, each needing a manual retry that then succeeded. The portal either answers the click almost at once or not at all, so a longer wait would not help.
Now:
filed-gstr3b-capture-reclickedwhether or not the second capture succeeds, so a review of a failed target can see that two clicks reached the portal. It is not added to the durable signal allowlist (that would widen what is persisted), so it appears on the step and in panel diagnostics but not in the saved ledger.Root Cause / Decision Record
AGENTS.mdroutes unknown, zero-byte, interrupted, ambiguous and unrelated downloads to review. This case has no download at all:sawDownload()reports whether the browser created any blob download from the tab, and any download keeps today's path, with no re-click;hasExpectedTarget), so the second click cannot land on another target;generation-timeoutis re-clicked.control-not-found,page-period-mismatch,too-largeandunexpected-contentare not, and each is pinned.Scope
src/background/gstr3b-artifact-acquisition.ts(two named waits, one re-click);src/background/artifact-download.ts(sawDownload()on the existing safety net).tests/background/gstr3b-artifact-acquisition.test.ts(re-click keeps the file; at most once; none after a seen download; none for four other failure reasons; waits sum to ≤ 20 s).Live verification
Needed: the timing probe on the qualification build should show GSTR-3B stalls ending at about 5 s, followed by a capture.
Pack Workflow Preflight
pnpm workflow:preflightwas run before editing/push, or the skip reason is documented.Sanchika Adoption Gate
Not applicable: no Sanchika adoption.
@sanchika/*packages or copied Sanchika guidance, Iread
sanchika/docs/adoption-pack.mdin the coordinated parent worktree.and records the Sanchika commit or copied guidance used.
../sanchika,sanchika/packages/*/src, or parentsource paths.
Privacy And Data-Flow Impact
Sensitive Surface Review
Chrome Web Store Impact
docs/PUBLICATION_READINESS.mdis checked.Verification
pnpm install --frozen-lockfilepnpm audit --audit-level highpnpm exec wxt preparepnpm exec prettier --check .pnpm exec eslint . --max-warnings 0pnpm exec tsc --noEmitpnpm exec vitest runpnpm exec wxt buildnode scripts/verify-extension-package.mjs .output/chrome-mv3pnpm exec wxt zipnode scripts/verify-extension-zip.mjsnode scripts/write-release-provenance.mjsnode scripts/verify-github-release-assets.mjs --tag <tag> --zip <zip> --checksum <sha256> --provenance <json>when release assets existnode scripts/publish-chrome-web-store.mjs --zip .output/<zip> --provenance .output/pack-release-provenance.v1.json --publisher-id <id> --dry-run truegit diff --checkpnpm review:gate -- --strict-head-review --wait-head-review-ms 180000before merge/readiness claim; a missing Codex review blocks readiness:Artifact Evidence
PR Review Follow-Up
sawDownload()sees onlyblob:downloads, so a server-URL download would not stop a re-clickScreenshots
Use synthetic data only.
Verification detail
Exit codes captured directly: prettier
0· eslint0· tsc0· build0· package verification0·git diff --check0· workflow preflight passed.All tests related to the two changed modules:
Test Files 18 passed (18),Tests 785 passed (785).Driven to failure, each on its own: ignoring the seen-download guard fails the no-re-click-after-download test; re-clicking for any reason fails the four other-reason tests; removing the re-click fails the success and at-most-once tests.
🤖 Generated with Claude Code