openclaw/src/tui
fuller-stack-dev 276c00015c
fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev)
* feat(tui): add local embedded TUI mode with terminal/chat aliases

Adds a gateway-free local TUI path so users can run openclaw in their
terminal without needing a running gateway process.

- TuiBackend interface abstraction (tui-backend.ts) with EmbeddedTuiBackend
  implementation that drives the agent loop in-process
- openclaw tui --local flag for local embedded mode
- openclaw terminal / openclaw chat aliases that imply --local
- /auth slash command with codex CLI delegation to avoid prolite plan issue
- Default model display fallback on startup
- Local-aware status text and log suppression
- Concise auth error hints, raw HTML 403 suppression
- Onboarding hatch flow launches local TUI (no gateway required)
- Commander alias bug fix in run-main.ts (.aliases() check)
- All new and updated tests passing (145/145)

* TUI: fix alias detection, cross-platform codex lookup, and history byte-budget safeguards

* TUI: remove RuntimeEnv type annotation to fix CI oxlint error

* TUI: filter gateway-dependent tools and auto-approve plugin hooks in embedded mode

* TUI: suppress console noise and add embedded mode system prompt note

* TUI: reduce embedded-mode tool filtering from 15 to 7, add local session tools

* TUI: fix remaining PR review comments

* TUI: address latest review feedback and CI drift

* Core: align prompt helper with latest base

* Core: match prompt helper formatting with base

* Core: restore prompt helper from latest base

* fix(tui): preserve local auth fallback in source checkouts

* fix(tts): guard telephony provider invocation

* fix(tui): support Windows codex auth shim

* fix(tui): harden local auth flow

* fix: preserve embedded tool-first run events

* fix(tui): keep embedded plugin approvals gated

* fix(tui): restore embedded attempt import

* fix(tui): resolve sessions in embedded stub

* fix: add embedded TUI changelog entry (#66767) (thanks @fuller-stack-dev)

* fix: pass setup TUI local mode through relaunch (#66767) (thanks @fuller-stack-dev)

---------

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-04-22 10:08:57 +05:30
..
components refactor: dedupe core lowercase helpers 2026-04-07 20:58:01 +01:00
theme
commands.test.ts
commands.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
embedded-backend.test.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
embedded-backend.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
gateway-chat.test.ts Fix setup TUI hatch terminal handoff (#69524) 2026-04-21 03:45:57 +01:00
gateway-chat.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
osc8-hyperlinks.test.ts
osc8-hyperlinks.ts
setup-launch-env.ts Fix setup TUI hatch terminal handoff (#69524) 2026-04-21 03:45:57 +01:00
tui-backend.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
tui-command-handlers.test.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
tui-command-handlers.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
tui-event-handlers.test.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
tui-event-handlers.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
tui-formatters.test.ts test: use synthetic metadata channel labels 2026-04-21 00:52:52 +01:00
tui-formatters.ts
tui-input-history.test.ts
tui-launch.test.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
tui-launch.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
tui-local-shell.test.ts
tui-local-shell.ts refactor: simplify runtime conversions 2026-04-11 01:23:34 +01:00
tui-overlays.test.ts
tui-overlays.ts
tui-session-actions.test.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
tui-session-actions.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
tui-status-summary.ts
tui-stream-assembler.test.ts
tui-stream-assembler.ts
tui-submit-test-helpers.ts
tui-submit.ts refactor: dedupe core lowercase helpers 2026-04-07 20:58:01 +01:00
tui-types.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
tui-waiting.test.ts
tui-waiting.ts
tui.submit-handler.test.ts
tui.test.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30
tui.ts fix: add local embedded TUI mode (#66767) (thanks @fuller-stack-dev) 2026-04-22 10:08:57 +05:30