# Future work

Pi Live core is now intentionally minimal: PTY + xterm.js + WebSocket + optional cloudflared + `/live`.

The following ideas are intentionally outside the core release.

## Multi-session gateway

- One shared local discovery service for all running Pi Live sessions
- One shared cloudflared tunnel routing:
  - `/pi/` → session list
  - `/pi/{session-id}/` → individual PTY session
- Shared token or per-session token modes
- Automatic session registration/deregistration

## Semantic web chat mode

The previous React event-bridge chat/tree UI can come back later as an optional mode:

- message/tool semantic feed
- chat tree navigation
- filtering and truncation
- Pi event replay

This should not be the default because it adds overhead to the local Pi TUI process.

## Remote command execution

- Remote execution of non-`/live` extension commands
- Prompt template and skill command execution parity
- Built-in TUI command proxying where Pi exposes public APIs

## Networking diagnostics

- Browser-side reachability checks
- DNS/TLS diagnostics for `trycloudflare.com`
- Cloudflared log viewer
- Per-session tunnel health indicator

## LAN mode

- Optional `0.0.0.0` bind mode
- LAN QR code
- Better firewall guidance for Windows/macOS/Linux

## UI polish

- More complete mobile terminal gestures
- Configurable virtual keybar
- Clipboard paste/upload helpers
- File drop into terminal paste buffer
