Skip to content

fix(app): list every Advanced section in the developer-mode command palette - #4722

Merged
yomgui merged 3 commits into
devfrom
e2e/palette-advanced-cap
Sep 11, 2026
Merged

yomgui merged 3 commits into
devfrom
e2e/palette-advanced-cap

Conversation

@yomgui

@yomgui yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member

Root cause

Triage: /Users/guillaume/OpenWork Chat/reports/e2e-red-2026-09-09/triage.md → Cluster 5 — Command palette settings cap (Brief F).

rankPaletteItems caps the no-query Settings group at 6 items. #4505 (ee06ea14d) put the Advanced sections first in developer mode and relied on there being exactly 6 of them. #4293 (94649b44a) added a 7th ADVANCED_SETTINGS_SECTIONS entry ("Workspace run mode"), so "Developer" fell off the empty developer-mode palette and command-palette-search went red (Timed out … seeing label=/^Developer/, first red nightly Sep 6).

What changed

  • apps/app/src/react-app/shell/command-palette-search.ts — the settings preview limit is now Math.max(6, ADVANCED_SETTINGS_SECTIONS.length), so every Advanced section is always listed in developer mode; regular mode is unchanged in practice (7 tabs instead of 6 in the preview).
  • apps/app/tests/command-palette-settings.test.ts
    • new unit test: the empty developer-mode palette lists every settings:advanced/* id (verified red without the fix, green with it).
    • re-expressed two claims that were already red on origin/dev @ c744e2d7b (stale since Make Advanced settings sections searchable with Command+K #4505 added per-section Advanced items): the stable-id list now includes the seven Advanced section ids, and "reset" is asserted to surface Advanced › Organization server (keyword "reset server") then the Advanced tab. This is re-expressing an intentional product change, not loosening.
  • evals/specs/command-palette-search.e2e.test.ts — tightening: asserts "Workspace run mode" is listed in developer mode without a search and is reachable via its alias (keep going) in the Command+K jump loop.

Proof

  • bun test --isolate tests/command-palette-search.test.ts tests/command-palette-settings.test.ts (apps/app): 11 pass, 0 fail. pnpm --filter @openwork/app typecheck: exit 0.
  • OPENWORK_EVAL_REF=947150786472aed356b3978f3b8da11d23807ad6 pnpm evals:e2e command-palette-search --daytona at sha 9471507:
    • selection: engine=legacy surface=legacy case=all; placement: daytona (--daytona)
    • [openwork/testkit] ==> source verified 947150786472aed356b3978f3b8da11d23807ad6
    • {"placement":"daytona","files":["command-palette-search"],"passed":1,"failed":0,"skipped":0,"verdict":"passed"}

Verdict: Passed (Daytona lane, single spec, no skips).

Noticed, not touched

  • pnpm --dir evals exec tsc -p tsconfig.json reports ~358 pre-existing errors on origin/dev (mostly packages/email --jsx not set); none in this spec.
  • command-palette-pin-rename is a separate cluster (macOS Meta+K sent to a Linux desktop) and is not addressed here.

…alette

The empty-query settings preview was capped at 6, which matched the six
Advanced sections when #4505 put them first in developer mode. #4293 added
a seventh section (Workspace run mode), so Developer fell off the list.
Size the preview from ADVANCED_SETTINGS_SECTIONS instead.
…ion items

Both claims went stale when #4505 added per-section Advanced items: the id
list omitted them, and "reset" now surfaces Advanced › Organization server
(keyword "reset server") ahead of the Advanced tab. Red on origin/dev
before this change.
…palette

Tightens command-palette-search: the seventh Advanced section must be listed
without a search and reachable by its alias.
@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 10, 2026 1:31am UTC
openwork-den Ready Ready Preview Sep 10, 2026 1:31am UTC
openwork-diagnostics Ready Ready Preview Sep 10, 2026 1:31am UTC
openwork-landing Ready Ready Preview, v0 Sep 10, 2026 1:31am UTC

@yomgui

yomgui commented Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Passed · 3/3 tests · 4/4 assertions · 2 images

Commit 947150786472aed356b3978f3b8da11d23807ad6 · selected evidence

Open review report

@github-actions

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (11427 ms), confidentiality-review (13730 ms), spec-provenance-review (27208 ms), desktop-den-sync-review (15818 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 1
  • Distinct heads in retained window: 1
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 1/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (947150786472aed356b3978f3b8da11d23807ad6). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@yomgui
yomgui merged commit d959091 into dev Sep 11, 2026
27 checks passed

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — 94715078 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-app — 94715078 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-den — 94715078 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-diagnostics — 94715078 Deployed Sep 10, 2026 by vercel[bot]
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