Skip to content

feat(tui): show omac-vs-bare status indicator#20

Open
nhuelstng wants to merge 1 commit into
mainfrom
feat/omac-status-indicator
Open

feat(tui): show omac-vs-bare status indicator#20
nhuelstng wants to merge 1 commit into
mainfrom
feat/omac-status-indicator

Conversation

@nhuelstng

Copy link
Copy Markdown
Contributor

What

Persistent visual marker showing whether the running harness is under omac or bare.

  • Claude Code: statusLine script (.claude/statusline-omac.sh) reading $OMAC_VERSION from env. Prints omac v<x> or bare. Ignores the JSON stdin payload so future statusLine schema changes cannot break it.
  • OpenCode: tui.showToast on session.created in the existing omac-multidir.ts plugin. Same env var. Documented SDK API (not experimental.*), not in the transcript so it cannot confuse the model.

Why

Users are sometimes unsure whether they are running under omac or just the bare harness. This adds a non-intrusive visual signal on each harness's native cleanest surface.

Future-proofing

  • Claude statusLine is a documented top-level feature with its own /statusline command. Reading env (not JSON) decouples from any schema evolution.
  • OpenCode tui.showToast is in the SDK TUI API table (stable). The plugin already subscribes to session.created and uses client.*.
  • Both guard on OMAC_VERSION presence \u2192 bare harness = silence, never an error.

Verification

  • bash -n on the statusline script: OK
  • Manual run: OMAC_VERSION=0.1.5 bash .claude/statusline-omac.sh < /dev/null \u2192 omac v0.1.5; unset \u2192 bare
  • tsc --noEmit --strict --skipLibCheck on the plugin: clean

Claude Code: persistent statusLine bar reading OMAC_VERSION from env
(ignores JSON stdin so schema changes can't break it). Prints 'omac
v<x>' or 'bare'.

OpenCode: tui.showToast on session.created with the same env var.
Documented SDK API, not in transcript so cannot confuse the model.

Both degrade to silence when OMAC_VERSION is unset (bare harness).

Signed-off-by: Niclas Hülsmann <niclas.huelsmann@tngtech.com>
@nhuelstng nhuelstng force-pushed the feat/omac-status-indicator branch from 7d98457 to 83bc91b Compare June 25, 2026 12:53
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