Skip to content

Fix provider auth, context budgets, desktop harness, and TUI rendering - #236

Merged
robertohluna merged 32 commits into
mainfrom
fix/codex-auth-and-request
Sep 5, 2026
Merged

Fix provider auth, context budgets, desktop harness, and TUI rendering#236
robertohluna merged 32 commits into
mainfrom
fix/codex-auth-and-request

Conversation

@robertohluna

@robertohluna robertohluna commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Consolidates the existing provider/harness fixes and all work from fix/osa-harness-tui-complete into this PR. Neither branch history was rewritten.

  • Repair Codex login startup and Responses request handling, including disabled server-side storage.
  • Add provider acceleration handling and fallback without changing reasoning or tool budgets.
  • Improve model context configuration, multimodal accounting, and resumed-session budgets.
  • Harden workspace daemon port handling and semantic macOS computer use with bundled accessibility support.
  • Improve plan-mode handling and tool execution.
  • Fix streaming Markdown gaps, table sizing, Unicode/emoji wrapping and selection, link rendering, and search highlighting.
  • Add preserved-layout transcript reading, horizontal pan, resize handling, and long-output snapshots during generation.
  • Include regression tests, terminal probes, and documentation.

Verification

  • TUI suite on the included rendering code: 1,555 passed, 0 failed, 1 ignored.
  • Both PTY probes passed, including 90 sampled streaming frames and long-output pan/resize checks.
  • Release TUI built successfully.
  • After merging: Responses provider tests passed, 29 tests, 0 failures.
  • Staged diff whitespace checks passed.

The merge retained the existing server-side-storage regression test. Rendering code is unchanged from the tested release build. This does not claim live validation of every provider/account or a graphical Mermaid engine.

Roberto added 2 commits September 3, 2026 14:22
Running → Starting OSA backend on :9090 (background daemon)
✗ Backend exited during startup.
  Last log lines:

    13:45:52.740 [notice]     :alarm_handler: {:set, {:system_memory_high_watermark, []}}

    13:45:53.280 [info] [Soul] Loaded 3/3 bootstrap files, 0 agent soul(s)

    13:45:53.285 [info] [PromptLoader] Loaded 6/6 prompts, 0 command templates

    13:45:53.306 [warning] [Workspace.Store] init/0 exception: could not lookup Ecto repo OptimalSystemAgent.Store.Repo because it was not started or it does not exist

    �[31m✗ OSA cannot start�[0m

    OSA already appears to be running on port 9089 — connect to it, or set OSA_HTTP_PORT to run a second instance.

    [os_mon] memory supervisor port (memsup): Erlang has closed
    [os_mon] cpu supervisor port (cpu_sup): Erlang has closed
 in different directories now spins up separate backend
daemons — each with its own port, state dir, memory, and sessions.
Same directory attaches to the existing daemon (instant). No new
commands needed, works like .

- Hash cwd → ~/.osa/workspaces/<hash>/ as the state dir
- Auto-assign next free port (9089, 9090, 9091, ...)
- OSA_PORT / OSA_HOME env vars still override (power-user escape hatch)
- --dev bypasses isolation (fixed port 19001)
@github-actions github-actions Bot added area/priv priv resources area/lib Core library code labels Sep 3, 2026
@github-actions github-actions Bot added the area/channels Channel adapters label Sep 3, 2026
@robertohluna
robertohluna force-pushed the fix/codex-auth-and-request branch from a7970af to dcec8f5 Compare September 3, 2026 19:57
@robertohluna
robertohluna force-pushed the fix/codex-auth-and-request branch from dcec8f5 to 51e7a4c Compare September 3, 2026 20:00
@github-actions github-actions Bot added documentation Improvements or additions to documentation area/docs Documentation content labels Sep 3, 2026
@github-actions github-actions Bot added the area/ci CI and workflow config label Sep 3, 2026
@robertohluna
robertohluna force-pushed the fix/codex-auth-and-request branch from cc9f1fa to a1ce0d9 Compare September 3, 2026 23:31
@github-actions github-actions Bot added the area/tui Rust TUI label Sep 4, 2026
@robertohluna robertohluna changed the title Fix Codex login and blank HTTP 400 responses Fix provider auth, context budgets, desktop harness, and TUI rendering Sep 4, 2026
@robertohluna

Copy link
Copy Markdown
Contributor Author

Added goal handoff fixes for #237 in e36f308: durable awaiting_user requests; explicit /goal approve and reject controls; /goal clear and cancel stop pursuit without claiming completion; stale-verifier guards; budget persistence; inactive-goal context labeling; TUI routing; and regression coverage. Local verification: 201 goal/API tests passed and 1,559 Rust tests passed (one ignored). Full CI is running on the updated PR. See docs/features/goal-handoff.md for behavior and limitations. Approval is explicitly scoped and still requires final verification; arbitrary replies are not approvals.

@robertohluna
robertohluna merged commit 6a8a43c into main Sep 5, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/channels Channel adapters area/ci CI and workflow config area/docs Documentation content area/lib Core library code area/priv priv resources area/tui Rust TUI documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant