Skip to content

feat(app): surface active SSH usage and add connect-time Playwright toggle - #50

Merged
skulidropek merged 4 commits into
ProverCoderAI:mainfrom
skulidropek:issue-33-3
Feb 16, 2026
Merged

skulidropek merged 4 commits into
ProverCoderAI:mainfrom
skulidropek:issue-33-3

Conversation

@skulidropek

Copy link
Copy Markdown
Member

Summary

  • show runtime state and active SSH session count in Stop container / Delete project selectors
  • add safe confirmations for stop/delete when active SSH sessions are detected
  • add Select project -> Connect toggle (P) to choose enabling MCP Playwright before SSH
  • ensure terminal cursor is visible before interactive SSH handoff (menu connect + clone/create auto-SSH)

Fixes #47
Fixes #33
Fixes #3

Proof (logic works)

Visible fragments in TUI:

> 1. org/repo (PR#47) [running, ssh=2]
Enter = select + SSH, P = toggle Playwright MCP (on), Esc = back
Playwright MCP: will be enabled before SSH (P to disable).

Stop/Delete confirmation now explicitly includes active SSH usage before destructive actions.

Automated tests

Added tests:

  • packages/app/tests/docker-git/menu-select-connect.test.ts
    • verifies ON flow executes enable before connect
    • verifies OFF flow skips enable
    • verifies toggle key parsing (P)
    • verifies connect hint reflects ON/OFF state
  • packages/lib/tests/usecases/terminal-cursor.test.ts
    • verifies cursor show escape is emitted in interactive TTY
    • verifies no write in non-interactive mode

Run output fragments:

✓ tests/docker-git/menu-select-connect.test.ts (4 tests)
✓ tests/usecases/terminal-cursor.test.ts (2 tests)

Validation

  • pnpm --filter ./packages/app lint
  • pnpm --filter ./packages/lib lint
  • pnpm --filter ./packages/app test
  • pnpm --filter ./packages/lib test
  • pnpm --filter ./packages/app build:docker-git

@skulidropek

Copy link
Copy Markdown
Member Author

Final proof update after CI fixes:

  • Added typed runtime fallback fix (8ba9aca) and removed try/finally from effect-lint tests (77d6a36).
  • Latest CI run 22069652453 is fully green, including:
    • Lint Effect-TS ✅
    • Test ✅
    • E2E (Login context) ✅
    • E2E (OpenCode) ✅

Local automated test fragments:

✓ tests/docker-git/menu-select-connect.test.ts (4 tests)
✓ tests/usecases/terminal-cursor.test.ts (2 tests)

Runtime/UI fragments already visible in this PR:

> 1. org/repo (PR#47) [running, ssh=2]
Enter = select + SSH, P = toggle Playwright MCP (on), Esc = back
Playwright MCP: will be enabled before SSH (P to disable).

@skulidropek
skulidropek merged commit f19b7f7 into ProverCoderAI:main Feb 16, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant