Skip to content

Organize worker threads and simplify task navigation - #1355

Merged
currentbits merged 31 commits into
mainfrom
codex/thread-worker-ux
Sep 26, 2026
Merged

currentbits merged 31 commits into
mainfrom
codex/thread-worker-ux

Conversation

@currentbits

@currentbits currentbits commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Worker-heavy tasks previously filled the sidebar with repeated fork titles and full-sized child rows, while routine completion messages crowded the conversation. This change groups true workers under their task, gives them concise names, and keeps attention and navigation available when the group is collapsed.

Resulting behavior

  • Worker families start collapsed, expand into compact rows, and surface descendant attention. Manual forks remain independent; repeated Fork: prefixes are normalized for new forks.
  • A Workers control opens the task's worker panel, and workers keep a persistent route back to their task.
  • Known routine machine-origin completion notices collapse into a disclosure that retains the original text. Failures, questions, requests, retries, attachments, and user-authored lookalikes remain expanded.
  • Primary navigation is labeled Threads, Planboard, and Review, with secondary destinations under More. Unsent text, attachments, and pasted content survive navigation without keeping a hidden transcript mounted.
  • The desktop sidebar is resizable with pointer and keyboard controls. Workflow and Best of N share the composer Options dialog while retaining their existing execution behavior.
  • Inspector tabs have contextual defaults and preserve manual choices per project and thread or route, including across panel collapse. Tabs support keyboard navigation.
  • Short disclosure motion respects reduced motion and keyboard interaction. Interrupting a closing worker group no longer leaves duplicate exit rows, and animations recover when reduced motion is turned off.

Verification

  • Production build, TypeScript, and IPC/preload checks pass.
  • The original UX head passed all 2,629 renderer tests on Linux, macOS, and Windows. Isolated Electron fixtures covered desktop/narrow layouts, keyboard/pointer controls, themes, reduced motion, draft retention, and before/after motion defects.
  • The reviewed provider and fixture repairs pass 347 fixture checks, 158 final targeted backend checks, and all five isolated Electron smoke passes on macOS.
  • An initial combined full backend run removed all seven original local failures. Its only two remaining failures were packaging scans of a bare readline import; the final node:readline correction passes those scans in the targeted run.
  • Merged repair files match the reviewed checkout byte-for-byte. git diff --check passes. No dependency changes.

Review notes

The worker branches were individually reviewed and merged into this integration branch with user approval. This PR collects that work; it does not release or install the app.

The abandoned-animation cleanup recognizes AutoAnimate 0.10.0's internal __aa_del marker, with a regression check for future dependency upgrades. Native fixture timing observations are not packaged-app performance claims.

Detailed evidence: initial review, navigation and notices, resize and composer, inspector, and motion acceptance.

Related plans: #1342, #1350, #1351, #1352, #1353. Handoff: #1354.

CI repairs

Tracked in #1356. The original branch run reproduced failures on unchanged main. Its Windows backend job was cancelled after repeating main's hang; its renderer tests had passed.

This branch now includes reviewed repairs for:

  • The smoke fixture's outdated Codex protocol, using the app-server handshake and root session.

  • Missing lane heartbeat clock binding, premature archival of fresh workers, and Codex stdin errors that could crash or strand pending requests.

  • Store normalization and rewind fixtures, a committed spec-mode repository, pending Store writes during teardown, simulator rejection timing, and trust-ranking clock drift.

  • Windows assertions for quoted hook paths, canonical writable roots, encoded MCP URLs, and file-mode reporting.

  • Windows provider and writer-lock process-tree termination, so stopping a command wrapper also closes its grandchildren and inherited pipes.

  • Linux bubblewrap user-namespace setup using the restricted AppArmor profile, verified through Codex's actual sandbox while retaining protected-git-metadata negative controls.

  • Remote Muse fixture isolation from inherited XDG paths, deterministic recording size checks, and merge-queue teardown that waits for pending Store writes.

The platform changes landed with explicit human workflow sign-off at 94846ab6; the Linux Codex home setup fix landed with the same sign-off at 00842af2. Merged files match their reviewed worker revisions. The combined review passed 4,023 backend tests; post-merge process/writer-lock/Muse checks passed 26 tests, and typecheck plus IPC/preload synchronization passed.

Hosted CI at 00842af2 passed all three smoke jobs and the full Linux and macOS test jobs. All platforms passed 2,630 renderer tests. Linux backend: 4,027 passed, 1 skipped; macOS backend: 4,025 passed, 3 skipped. Each passed all 230 memory checks. Windows completed without the former hang but reported 19 backend and 10 memory failures.

The reviewed Windows follow-ups are now merged at f6c1a254 and 448326cc: canonical memory paths, orphan detection, reserved-port fallback with cleanup on config-write failure, portable platform fixtures, multiline fake-CLI arguments, and asynchronous teardown retries. All 28 merged files match the reviewed worker revisions. Local validation includes 220 provider/cleanup checks, 77 platform checks, and 17 server checks, including the listener-leak regression. Hosted CI at 448326cc passed Linux, macOS, all smoke jobs, and all 233 Windows memory checks. Windows backend tests reached 808 passed with one Grok fixture failure: its background Node child was killed by Windows job cleanup when the fake CLI exited. Commit bfb72764 detaches that fixture child on Windows while retaining the pipe assertion and stop-file cleanup; all 14 Grok checks pass locally. Hosted CI at bfb72764 passed all six jobs: full tests and smoke on Windows, Linux, and macOS. Native Windows passed the formerly failing Grok descendant-pipe check, all 809 backend tests, all 233 memory tests, all 2,630 renderer tests, 38 core tests, and 25 stats tests, with zero failures. CI repair evidence is recorded in #1356. All six hosted CI jobs are green; this PR is ready for review.

Willem added 21 commits September 24, 2026 10:04
@currentbits
currentbits marked this pull request as ready for review September 26, 2026 15:28
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-26T15:33:29.560173Z bfb7276 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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