Skip to content

test: cover saved menu slot repeatability - #13963

Open
carlitogwapito wants to merge 1 commit into
unslothai:mainfrom
carlitogwapito:codex/test-fixed-menu-slot-repeatability
Open

carlitogwapito wants to merge 1 commit into
unslothai:mainfrom
carlitogwapito:codex/test-fixed-menu-slot-repeatability

Conversation

@carlitogwapito

Copy link
Copy Markdown
Contributor

Small test-only follow-up to #13959.

Adds a check for all nine saved Deep research positions and eight rotations of the other items (72 combinations), using frozen input arrays. It checks the saved slot, movable-item order, a single fixed ID, and the same result after a repeated call. No production files change.

Focused validation on Windows with Node 24.15.0: 10 passed, 0 failed or skipped, including the nine existing menu tests:

node --experimental-strip-types --test --test-concurrency=1 --test-reporter=tap tests/chat-menu-order.test.ts tests/chat-menu-fixed-slot-repeatability.test.ts

This used the real store, the existing in-memory storage helper, and the lockfile's React/Zustand versions. Full frontend lint, typecheck, build, and browser/desktop tests weren't run locally.

Optional: keep this as a pure-helper guard alongside the existing source-shape checks; it doesn't replace a real drag or keyboard check.

danielhanchen added a commit that referenced this pull request Oct 16, 2026
…13983)

## Summary

`Frontend build + bundle sanity` fails on PRs based on current main (for
example #13961 and #13963) with `over the startup budget`. Main itself
is over:

| commit | raw | transfer |
|---|---|---|
| 5870795 | 6,791,021 B (within) | 2,042,102 B (within) |
| 4a8b727 (main) | 6,791,768 B (587 B over) | 2,042,404 B (113 B
over) |

All numbers are from one machine and build, Node 24, with the chunk
count unchanged at 95.

Measured commit by commit, no single import did it:
- Deep research under Tools in the + menu (#13959) took main over, at
+0.2 KB raw.
- The connection name and provider menu order (#13964) and the
attachment card polish (#13970) add the rest, 0.1 and 0.4 KB raw.

All of it lands in the eager chat and settings chunks.

## Change

Following the file's own rule ("raise BUDGET in this file ... with the
measured numbers"), the budget is raised by that growth, 747 B raw and
302 B transfer, so main keeps the margin it had at 5870795. The
measurement is recorded next to the limits like the previous raises.

## Testing

- `npm run build && npm run bundle:check` on main with this change:
within budget (0.2 KB transfer, 0.2 KB raw to spare). Without it: over
by the amounts above.
- `tests/bundle-budget-cli.test.ts` and
`tests/bundle-budget-closure.test.ts`: 43 passed.
- `prettier --check scripts/check-bundle-budget.ts`: clean.

This branch has not been deployed

No deployments
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.

1 participant