Repository navigation
refactor(alert): one helper owns the alert runner budget - #4563
Conversation
Follow-up to #4540 review notes: alertRunnerBudgetMs owns the default, floor and ceiling; alertWaitTimeoutMs becomes alertTimeoutMs since it also feeds alert get; drop the hand-built watchdog test that only pinned existing behaviour. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Size Report
Startup median (7 runs, lower is better):
|
There was a problem hiding this comment.
No issues found across 3 files
You’re at about 94% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
Apex Sentinel · ✅ ApproveNo open findings. 1 finding below 💬 Talking to SentinelIn a finding's thread, reply with:
On this conversation, comment |
|
This PR is ready: I found no correctness problems at 11e3ab1, and all 20 checks pass with no open review threads. There are no conflicts. Nothing else needs to happen before merge. The runner-visible budgets are unchanged for every finite input, and the unit table test pins them at the runner client boundary. Not blocking, and you can take or leave these: |
* origin/main: fix(alert): derive the request envelope from an alert wait window (#4581) fix(android): require a nonzero chunk before a recorder counts as ready (#4559) chore(deps): clear astro and node-forge security alerts (#4577) fix(ios): establish the screen origin of a full-screen private AX root (#4573) docs(agents): trace behavior claims during review (#4576) fix(mcp): trim the press plan text back under the always-loaded byte budget (#4572) refactor(alert): one helper owns the alert runner budget (#4563) feat(interaction): multi-ref press plan lowered through the ordinary press lane (#4296) fix(ios): use the caller's budget for alert get and type the watchdog outcome (#4540) feat(recovery): bound remote health and runner-busy recovery by the command's deadline (#4541) fix(ios): find the navigation bar back button outside the bar's subtree (#4542) feat(open): report device kind, model and osVersion on open and session identity (#4543) fix(apple): use typed screenshot timeouts and observed shutdown recovery (#4544) feat(device-status): report per device whether a new session can take it (#4547) fix(runner): type the refusals for a control the target cannot supply (#4548) refactor(transport): share outgoing transfer phase ownership (#4551) fix(remote): bound artifact preparation and upload phases (#4552)
Applies the non-blocking review notes on #4540 (#4540 (comment)). No behaviour change.
alertRunnerBudgetMsinpackages/platform-apple/src/alert.tsnow owns the default (10 s), the read floor (1.5 s) and the 25 s ceiling. Before, they were split betweenreadAppleAlertandrunAppleAlert. Every budget the runner receives is the same as before.alertWaitTimeoutMsinsnapshot-alert.tsis renamed toalertTimeoutMs, and its doc now says it also sets thealert getbudget.alert.test.tsis removed. It only re-checked existing behaviour that other tests already cover.Not taken: the optional live
alert wait 30000run on a simulator. The wait path is unchanged here.Validation: vitest on
alert.test.tsand the daemon execution handlers (101 tests) passes; typecheck, oxlint and oxfmt are clean. CI owns the rest.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.