[Bug]: omo-ai beta.23+ shared host hides TUI cache hit, cost, Goal, and resumed state

Author: GunP4ngCreated Aug 28, 2026Updated Sep 29, 2026

Prerequisites

  • This issue is written in English.
  • Existing OMO issues were searched for duplicates.
  • The latest omo-ai beta was tested.
  • The regression was compared against the last known-good beta and traced to its upstream change.

Bug Description

omo-ai 5.0.0-0.beta.23 and 5.0.0-0.beta.24 start Senpi's shared interactive host by default. In that path, the TUI no longer receives all state owned by the remote session.

The following user-visible information disappears or stops updating:

  • prompt cache hit rate (CH...%);
  • cumulative cost;
  • Goal footer status (Pursuing goal ...);
  • resumed-session transcript/footer state in some resume flows.

5.0.0-0.beta.22 did not exhibit this behavior.

Regression Range

OMO version Senpi dependency Result
5.0.0-0.beta.22 2026.8.26-2 Good: local interactive runtime
5.0.0-0.beta.23 2026.8.27 Bad: shared host enabled by default
5.0.0-0.beta.24 2026.8.28 Bad: issue remains

The upstream behavior was introduced by:

Steps to Reproduce

  1. Install [email protected].
  2. Start an interactive OMO/Senpi session.
  3. Complete one or more model turns that report non-zero usage and cache reads.
  4. Create an active Goal with /goal <objective> or the Goal tool.
  5. Resume the session and inspect the transcript/footer.
  6. Observe that cost/cache hit do not update and Goal/resumed state can be absent.
  7. Start the same session with DISABLE_SHARED_HOST=1.
  8. Observe that the local runtime renders the usage and Goal status correctly.

Expected Behavior

The shared-host path must have feature parity with the local interactive runtime:

  • footer usage must reflect the authoritative remote session;
  • extension UI requests such as setStatus must reach the local TUI;
  • switching/resuming a session must rebuild transcript and footer state from the authoritative session;
  • existing OMO Goal UI must remain visible.

Actual Behavior

The remote proxy mirrors selected model/stream/message state but leaves the footer reading the local sessionManager.

FooterComponent reads:

typescript
this.session.sessionManager.getUsageTotals()

The shared-host proxy updates local.agent.state.messages, but it does not synchronize or proxy sessionManager.getUsageTotals(). The remote Goal extension emits extension_ui_request with method: "setStatus", but the interactive proxy has no handler that applies this request to the local TUI.

As a result, the remote session works while its UI state is stale or missing.

Why Existing Tests Missed It

The shared-host regression tests construct their runtime with:

typescript
resourceLoaderOptions: {
  noExtensions: true,
  noSkills: true,
  noPromptTemplates: true,
  noThemes: true,
}

They verify remote prompt round-trips, liveness, durable session IDs, fallback, and selected state fields. They do not render FooterComponent, assert usage totals, load Goal, or handle extension UI requests.

Suggested Fix

Short-term OMO mitigation:

  • keep the local interactive runtime as the default for omo-ai, or set DISABLE_SHARED_HOST=1, until shared-host TUI parity is verified;
  • retain shared host behind an explicit opt-in.

Long-term upstream fix:

  • expose authoritative usage totals/session metadata over the RPC state or proxy;
  • route RpcExtensionUIRequest methods, especially setStatus, into InteractiveMode;
  • rebuild authoritative transcript/footer state after switch/resume;
  • add an end-to-end TUI test covering cache hit, cost, Goal status, and resume.

Environment

omo 5.0.0-0.beta.24 (engine: senpi 2026.8.28)
Node.js 24.14.0
Linux 6.18.33.2-microsoft-standard-WSL2 x86_64

Workaround Confirmed

Disabling the shared host restores the expected TUI behavior:

bash
DISABLE_SHARED_HOST=1 omo

Source: code-yeongyu/oh-my-openagent