Skip to content

v0.19.0 — `og` is the default theme, and a resumed space gets its agents pane

Choose a tag to compare

@jmvbambico jmvbambico released this 15 Oct 12:32
· 113 commits to main since this release
d73e65b

Changed

  • og is the default theme for og agents. DEFAULT_THEME was dracula; a machine with no stored preference now opens in og's own palette rather than needing the picker to find it. Nothing else moves: dracula stays an ordinary catalog row, a stored {"theme": "dracula"} still opens dracula, and --theme / $OG_AGENTS_THEME override as before. og keeps order: 0 so the picker still lists it first.

    This reverses a decision the code recorded in three places — og_themes.py, themes.json's $comment, and og_agents.py all said "dracula stays the default, and og is the way back, not the way in". All three now state the new rule and keep dracula's own rationale, rather than being left asserting the opposite of the code. The BUILTIN fallback moved with the default, forced by an existing contract (list(BUILTIN) == [DEFAULT_THEME]): leaving it behind would make load_theme() and theme_for() disagree whenever themes.json is missing.

Fixed

  • og chat --resume into a herdr-made space now gets its og agents pane. v0.18.1 stopped og start opening a third pane by having og chat stand down when og's state record names the pane it is running in, reasoning that "the launcher keeps the split". That is true for og start and false on the history path: _add_history_space splits and runs og agents at space creation, so when you later resume into that space the record still matches, og chat stands down — and nothing is coming, because _split_agents has exactly one caller and _add_history_space is only reached for a new space or a re-projection where the space is gone. The second pane stayed empty for the life of the space.

    The record's owner answers the question the pane list cannot — is a second half still coming?

    • owner == launcher: the split is in flight or done in the same call. Stand down immediately, before any pane listing and without opening a herdr socket at all.
    • owner == history / bridge: the split, if any, happened at creation. Nobody is coming, so the tab is checked and the pane opened when it is missing.

    An intermediate approach — requiring the pane to exist in every case — reintroduced the v0.18.1 bug through a race, because the launcher writes the record, calls pane_run and splits in one call, so on a fresh launch the pane may not exist yet when the chat process looks. A test pins that: it fails on the intermediate commit with pane.list, pane.split, pane.list, the duplicate split reproduced.

  • A space recorded with the agents pane disabled no longer stands down forever. _split_agents returns early when the pane is off, but the record is written regardless — so enabling herdr_agents_pane afterwards and resuming produced no pane, no error, and no way back. The same owner rule covers it: a bridge record with no second pane is split.

  • A state record with no owner is no longer treated as nobody's. A record matching all three ids is og's pane, whatever the writer left out, so it now takes the pane check rather than splitting unconditionally — which could have duplicated an agents pane that was already there.

  • A test that depended on whose machine ran it. test_theme_for_falls_back_for_a_stale_slug_but_a_typed_slug_is_checked read the real ~/.omnigent instead of a tmp home like its neighbours, so its verdict turned on the developer's own stored theme. It now redirects $OMNIGENT_HOME the way the rest of the module does. This was the one failing test across the whole v0.18.x series; the suite is green for the first time.

Known limits, unchanged

pane.list reports only {pane_id, tab_id, workspace_id} — no command, no process — so a pane whose og agents crashed is indistinguishable from a healthy one. Such a pane is not repaired; close it and re-run. And a launcher space whose split failed is no longer repaired by og chat: the launcher reports that failure through report before the terminal is handed to herdr, so it reaches you, which the bridge path's reconcile-line degradation does not.

Verification

  • Full gate: 1394 passed, 0 failed, run twice with identical counts under a 600s alarm.
  • Baseline v0.18.1 is 1376 passed + 1 failed; the deltas (+1 theme, +9 resume, +8 polish) reconcile exactly.
  • New tests were verified to bite: the history-resume test fails on v0.18.1, and the race test fails on the intermediate commit, each for its stated reason.

Review

cross-vendor-review: passed

Implemented by opencode-zen-vendor and deepseek-vendor agents, reviewed independently by an openai-vendor agent. Verdict APPROVE, no blocking issues. Two non-blocking findings were applied rather than deferred: the launcher stand-down was building a herdr client before returning on the hot path, and a record with a missing owner skipped the pane check in a way that could duplicate a pane.