Skip to content

Add support for the Rex terminal - #5213

Open
primerch wants to merge 3 commits into
steipete:mainfrom
primerch:rex-terminal-support
Open

primerch wants to merge 3 commits into
steipete:mainfrom
primerch:rex-terminal-support

Conversation

@primerch

Copy link
Copy Markdown

Summary

  • Show the installed Superlogical Rex app in Settings → General → Default terminal.
  • Send the Open Terminal command to a new local Rex session using its native AppleScript support. Failed launches use the existing Terminal fallback.
  • Add the Apple Events entitlement and usage description to the main app so signed builds can ask for macOS Automation permission. Apple Events entitlement

Verification

  • make check
  • ./Scripts/test_fast.sh --jobs 9 --filter 'TerminalAppTests|SettingsStoreCoverageTests' passed 73 tests.
  • Compiled the launch script against the installed Rex 0.1.0 (2181) scripting dictionary.
  • Verified the Rex option in the packaged macOS preview's terminal picker.

Rex in the Default terminal menu

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. impact:auth-provider This issue is about auth, provider routing, model choice, or SecretRef resolution. clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge.

What this changes

Adds Rex to the existing terminal picker and AppleScript launcher, plus the main app’s Automation entitlement and usage description.

Example: Rex 0.1.0 is installed and the user chooses Open Terminal for Claude.

  • Before: Rex cannot be selected as the default terminal.
  • After: The proposed integration lets the user select Rex and launches claude in a new local Rex session, falling back to Terminal if launching fails.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The patch is focused and has no definite correctness finding, but required runtime and upgrade evidence is incomplete and product direction remains unresolved.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Users with Rex installed cannot choose it for CodexBar’s Open Terminal actions.
Reason: The implementation is small and follows prior integrations, but accepting another supported terminal and adding an app permission remain owner choices.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep this PR open: it adds a focused terminal integration absent from main, with no definite introduced defect found; supporting Rex still needs an owner decision.

Reviewed head: 79b71551eb353cbe5787640c7a199a142e9f0705
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should CodexBar support Rex as a terminal choice and ship the main-app Automation entitlement proposed here?
  • Recommendation: Accept the bounded integration: Approve Rex support within the existing launcher, subject to the required runtime evidence.
  • Why: Earlier terminal integrations establish the architecture, but no owner approval of this new terminal and permission addition appears in this PR’s discussion.

Before merge

  • Add real behavior proof - The supplied screenshot proves picker availability, while the reported script compilation and stubbed launcher tests do not demonstrate packaged-app command execution, Automation handling, or fallback; the persisted terminalApp value also lacks a latest-stable upgrade run. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Provide redacted recording or logs from a freshly packaged signed app showing Open Terminal executing a quoted command in Rex 0.1.0, Automation permission handling and failure fallback, plus fresh-install and v0.85.0-upgrade runs preserving an existing terminalApp choice.
Agent review details

How this fits together

Settings stores the selected terminal; provider actions pass commands to TerminalLauncher, which resolves the installed application and executes its launch mechanism with a Terminal fallback.

flowchart LR
    A[Terminal preference] --> B[Provider Open Terminal action]
    B --> C[TerminalLauncher]
    C --> D[Rex AppleScript]
    D --> E[Local Rex session]
    C --> F[Terminal fallback]
Loading

Technical review

Best possible solution:

Retain the small integration in the existing terminal abstraction if the owner accepts Rex support and the packaged-app behavior is demonstrated.

Do we have a high-confidence way to reproduce the issue?

This is a feature addition: current main’s terminal enum and picker have no Rex option, rather than a reported failure of an existing supported path.

Is this the best way to solve the issue?

The implementation uses the appropriate existing owners for detection, persistence, command escaping, launching, and fallback, without adding a parallel launcher.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a26ca57b5186.

Provenance checked

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 2765877 adds Sources/CodexBar/TerminalApp.swift:4 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 27658771715f; files: Sources/CodexBar/TerminalApp.swift)
  • Yuxin Qiao: Raw commit 2e42427 adds Sources/CodexBar/TerminalApp.swift:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2e42427db242; files: Sources/CodexBar/TerminalApp.swift)
  • Rusty Shackleford: Raw commit 6e603f5 adds Sources/CodexBar/TerminalApp.swift:253 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6e603f578647; files: Sources/CodexBar/TerminalApp.swift)
  • Brandon Johnson: Raw commit efdef20 adds Sources/CodexBar/TerminalApp.swift:123 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: efdef209ed73; files: Sources/CodexBar/TerminalApp.swift)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Demonstrate the packaged-app Rex launch and fallback scenarios described in the proof assessment.
  • Show an upgrade from v0.85.0 retaining the saved terminal choice.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 29, 2026, 1:32 AM ET / 06:32 UTC.

@primerch
primerch marked this pull request as ready for review November 29, 2026 06:36
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T00:05:10.011705Z 7ce2c5e 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.

Merge current main, localize the Automation permission prompt, and keep synthetic proof captures outside the repository.

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

impact:auth-provider This issue is about auth, provider routing, model choice, or SecretRef resolution. P2 Normal priority bug or improvement with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants