Repository navigation
test(mobile): fix the file preview retry test types that broke main's test typecheck - #35431
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 7 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
[Low impact] This test-only type fix appears safe to merge. SummaryFixes two test-helper types in
No actionable issues found. These changes do not alter runtime behavior. Tests and typechecks were not run during this review. Reviews (1) · Last reviewed commit: "test(mobile): type the file preview retr..." · Reviewed by Greptile |
* Unify dedicated agent launch choices and argument badges * Enable action model and effort menus with argument migration * Bound argument choice edit range processing * Preserve independent action effort through launch and migration * Preserve literal config arguments and explicit launch permissions * Respect repository action argument groups and share launch controls * Remove duplicate action launch command coverage * Unify Source Control action choices and repository overrides * Use precise types in action choice contracts * Consolidate action choice test imports * Correct action choice types and integration test boundaries * Complete prepared terminal test result contract * Align action integration expectations with canonical choices * test(mobile): type the file preview retry test helpers so the test typecheck passes (#35431) (cherry picked from commit 0774fc9) * Commit edited action arguments before planning and launch Reconcile deliberate raw edits once into the submitted action recipe so replacement model and effort flags reach Save and Start together. Preserve captured sources and untouched load conflicts. * Name portable Source Control dialog fixture results
* Unify dedicated agent launch choices and argument badges * Enable action model and effort menus with argument migration * Bound argument choice edit range processing * Preserve independent action effort through launch and migration * Preserve literal config arguments and explicit launch permissions * Respect repository action argument groups and share launch controls * Remove duplicate action launch command coverage * Add agent setup search and controls to the new tab menu * Show inherited choices beside picker reset options * Keep terminal Arguments separate from shared launch choices * Launch default agents from rows and select resolved setup values * Keep terminal settings available while Chat defaults load * Reuse existing launch setup controls and Arguments editor * Unify Source Control action choices and repository overrides * Use precise types in action choice contracts * Consolidate action choice test imports * Correct action choice types and integration test boundaries * Complete prepared terminal test result contract * Align action integration expectations with canonical choices * Keep launch defaults authoritative and couple CLI controls * Assert production Chat preparation runs in launch contract * Preserve alternate Chat launches and bound picker argument derivation * Publish committed picker priority and satisfy control contracts * test(mobile): type the file preview retry test helpers so the test typecheck passes (#35431) (cherry picked from commit 0774fc9) * fix: keep picker integration tests within compiler boundaries * fix: revalidate completed picker defaults on reopen * test: give exported launch fixture mocks portable signatures * fix: keep fallback launch carriers out of action mode controls * Preserve Fast argument badges outside dialog mode controls * Project existing Fast carriers independently of model capabilities * Keep setup focus during launch row pointer transitions * Allow declared tier choices without an inherited selection * fix: place agent setup beside the launch menu * Commit edited action arguments before planning and launch Reconcile deliberate raw edits once into the submitted action recipe so replacement model and effort flags reach Save and Start together. Preserve captured sources and untouched load conflicts. * Name portable Source Control dialog fixture results * Keep agent setup contained and preserve known argument policy * Use checked style properties in popup geometry fixture * Keep setup scrolling inside a plain content wrapper * fix(agent-picker): match the setup panel to the approved layout Flush model search and list, one settings section with label-left rows (Effort, compact Permissions menu, Fast mode), a fixed Arguments disclosure row with its hint, and a summary footer with Launch chat / Launch terminal. Settled defaults with nothing chosen keep the model list and Effort pickable. Hovering another menu row no longer closes the open panel. * fix(agent-picker): use primitive-owned spacing and update launch labels in tests * fix(agent-picker): add panel labels to localization catalogs * Keep one launch setup open and align picker spacing * Tighten launch model rows and clarify terminal hint * Keep keyboard focus in replacement launch setup * fix(tab-bar): keep a long agent setup result's chevron inside the menu * test(agent-picker): wait for outgoing focus cleanup event * Show empty model search feedback and name setup dialog * test: register selection catalog in launch guard fixture * fix(agent-picker): retain setup drafts and contain Arguments * fix(agent-picker): retain authored setup route after alternate launch * style(agent-picker): use a ghost setup chevron with divider * style(agent-picker): apply muted color to setup glyph * test(agent-picker): declare retained catalog default
ELI5
#31696 left a mobile test file that doesn't typecheck, so main's mobile test-typecheck ratchet is red and every mobile PR's Mobile verify fails. This fixes the two types. No app code changes.
What Changed
serveReadstakes a(method: unknown) => Promise<unknown>sender, matching the mocked client'ssendRequest: (...args: unknown[]) => unknown.ExecutionHostId | undefinedinstead ofstring | undefined, matchingWorkspaceExecutionHostContext.Why
Restores main. The test helpers came from my refactor while carrying #31696. The PR's own checks skipped the mobile test typecheck, so it was missed there.
Linked Issue
No issue. Fixes main broken by #31696.
Visual Proof
N/A: test-only type fix.
Testing
tsc -p mobile/tsconfig.test.json --noEmitreports no errors inmobile-file-preview-retry.test.tsx(two before). The file's 11 tests pass.AI Disclosure
Review
Test-only, two type annotations.
Agent skill upstream boundary
Notes
No runtime, platform, remote or mobile behaviour change.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)