Skip to content

feat(bin): let Rex workers open labeled side panes and close them at cleanup - #7

Merged
roderik merged 3 commits into
mainfrom
fm/rex-p4-side
Oct 22, 2026
Merged

roderik merged 3 commits into
mainfrom
fm/rex-p4-side

Conversation

@roderik

@roderik roderik commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

Phase 4, item B: Rex workers can open labeled side panes in their own tab for test runs, dev servers, or validation progress, and task cleanup closes them.

  • bin/fm-rex-side.sh open <name> -- <command...> | list | close <name>: from a proven worker pane, splits the worker's tab below it without taking focus, labels the pane <worker block label>/<name>, and keeps its output after the command exits. list shows each side pane as running or exited with its status; opening a name that is already open refuses.
  • Task cleanup (fm_backend_rex_kill) closes only the task's labeled side panes, in both the worker's current tab and its recorded tab (a moved block keeps its id but not its tab). Foreign panes are never touched. An unreadable pane list, or a side pane still present after close, fails the cleanup so teardown keeps the record and can retry.
  • list_live no longer counts side panes as tasks.
  • Ship and scout briefs outside the Rex lab contract name the helper.
  • A Rex tab holds at most 64 panes by default, so a worker's tab holds at most 63 side panes (documented in docs/rex-backend.md).

Validation

no-mistakes was bypassed for this PR at the captain's instruction (its review agent and gate-mirror reconciliation kept failing). Run locally on the head commit:

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 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-10-22T15:13:44.410091Z 728f36c New commits
ℹ️ 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.

…cleanup

Add bin/fm-rex-side.sh (open|list|close): from a proven worker pane it
splits the worker's own tab without taking focus, labels each pane
<worker block label>/<name>, keeps its output after the command exits,
and with --wait returns the command's status. Task cleanup closes only
those labeled panes in the task's tab (or its recorded tab once the
worker block is gone), so no orphan tab remains and foreign panes are
untouched; list_live no longer counts side panes as tasks. Ship and
scout briefs outside the Rex lab contract name the helper.
@roderik
roderik merged commit 01faf05 into main Oct 22, 2026
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