Skip to content

test(desktop): align assistant prompt bounds - #11504

Merged
Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:codex/assistant-prompt-bound-fix
Aug 13, 2026
Merged

Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:codex/assistant-prompt-bound-fix

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Aug 13, 2026 •

Copy link
Copy Markdown
Member

Summary

  • align desktop assistant-settings tests with the deployed 10,000-scalar backend contract
  • assert the shipped oversized task prompt is intentionally omitted from sync rather than truncated
  • preserve the existing per-owner local prompt behavior; no runtime source changes

Verification

  • xcrun swift test --package-path desktop/macos/Desktop --filter APIClientAssistantSettingsTests (10/10 passed)
  • python3 desktop/macos/scripts/check_desktop_test_quality.py

The future backend-first prompt limit increase remains tracked separately in #11481.

Failure-Class: FC-test-contract-ahead-of-deployed-boundary

Review in cubic

38d3b8e added tests asserting that the shipped default task prompt fits
its sync bound and that task syncs above the legacy 10k — neither has ever
been true (the default prompt has exceeded 10k code points since at least
June 2026 and is deliberately omitted from sync; backend and client bounds
are both 10000), so the desktop Swift suite was red on main and blocked the
release train. Restore the tests to the real contract: the oversized shipped
prompt is omitted, and all three assistants share the 10k backend bound.
The intended bound raise (backend limit must deploy before the client
constant moves) is tracked in BasedHardware#11481.

Also lowers the down-only source-inspection baselines to current debt
(55/148 -> 54/147), per the checker's note.

Verification: xcrun swift test --filter APIClientAssistantSettingsTests
now 10/10 (was 2 failures on clean main); check_desktop_test_quality.py OK.
@Git-on-my-level
Git-on-my-level merged commit d1046bb into BasedHardware:main Aug 13, 2026
12 of 13 checks passed
kodjima33 added a commit that referenced this pull request Aug 13, 2026
The prompt-bound test repair landed on main via #11504; what remains here
is the down-only test-quality ratchet the checker asked for (55/148 -> 54/147).
Verification: python3 scripts/check_desktop_test_quality.py -> OK at 54/147.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants