Files
openclaw/src/tui/AGENTS.md
Dallin Romney 0a50cbdf34 Add TUI PTY integration coverage (#85485)
* test: add TUI PTY integration coverage

* test: stabilize TUI PTY CI

* test: speed up TUI PTY coverage

* test: bound TUI PTY local waits

* ci: keep TUI PTY gate fast

* test: route TUI PTY project in full suite

* ci: run TUI PTY on routing edits
2026-05-22 13:42:58 -07:00

887 B

TUI Notes

  • Run node scripts/run-vitest.mjs run --config test/vitest/vitest.tui-pty.config.ts for the fast fake-backend PTY lane.
  • Use OPENCLAW_TUI_PTY_INCLUDE_LOCAL=1 with that command for the slower tui --local smoke test, which mocks only the external model endpoint.
  • The local PTY smoke runs tui --local and mocks only the external model endpoint. The fake-backend lane runs the real runTui() loop with a fake TuiBackend.
  • Do not claim the fake-backend PTY harness proves Gateway transport, embedded backend runtime, providers, session persistence, or live streaming.
  • Prefer stable visible text and fixture backend call assertions. Avoid raw ANSI snapshots.
  • Use pnpm tui:pty:test:watch to watch the fast fake-backend PTY test without mixing Vitest reporter output into the TUI screen. Use --mode local for the local-backend smoke or --mode all for both.