Repository navigation
feat(bin): let Rex workers open labeled side panes and close them at cleanup - #7
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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.
…ch the worker's current and recorded tabs
roderik
force-pushed
the
fm/rex-p4-side
branch
from
October 22, 2026 15:05
f5567fa to
728f36c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.listshows each side pane as running or exited with its status; opening a name that is already open refuses.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_liveno longer counts side panes as tasks.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:
tests/fm-backend-rex.test.sh: 39/39 ok (rebased onto feat(bin): add Firstmate commands to the Rex command palette #5 and feat(bin): show Rex validation progress, opt-in state tint, and tab-label titles #6), including moved-tab, failed-close, and unreadable-inventory cleanup casestests/fm-brief.test.sh,tests/fm-rex-palette.test.sh,tests/fm-teardown-endpoint-safety.test.sh: no failurestests/fm-backend-rex-smoke.test.shon a private lab Rex server: all ok (side panes open unfocused, cleanup closes exactly them, a foreign pane survives, no orphan tab)bin/fm-lint.shandbin/fm-doc-audience-check.sh: clean