Repository navigation
v0.19.0 — `og` is the default theme, and a resumed space gets its agents pane
Changed
-
ogis the default theme forog agents.DEFAULT_THEMEwasdracula; 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_THEMEoverride as before.ogkeepsorder: 0so the picker still lists it first.This reverses a decision the code recorded in three places —
og_themes.py,themes.json's$comment, andog_agents.pyall said "dracula stays the default, andogis 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. TheBUILTINfallback moved with the default, forced by an existing contract (list(BUILTIN) == [DEFAULT_THEME]): leaving it behind would makeload_theme()andtheme_for()disagree wheneverthemes.jsonis missing.
Fixed
-
og chat --resumeinto a herdr-made space now gets itsog agentspane. v0.18.1 stoppedog startopening a third pane by havingog chatstand down when og's state record names the pane it is running in, reasoning that "the launcher keeps the split". That is true forog startand false on the history path:_add_history_spacesplits and runsog agentsat space creation, so when you later resume into that space the record still matches,og chatstands down — and nothing is coming, because_split_agentshas exactly one caller and_add_history_spaceis 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
owneranswers 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_runand 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 withpane.list, pane.split, pane.list, the duplicate split reproduced. -
A space recorded with the agents pane disabled no longer stands down forever.
_split_agentsreturns early when the pane is off, but the record is written regardless — so enablingherdr_agents_paneafterwards 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
owneris 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_checkedread the real~/.omnigentinstead of a tmp home like its neighbours, so its verdict turned on the developer's own stored theme. It now redirects$OMNIGENT_HOMEthe 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.1is 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.