pi-mono/apps/p2/plugins/terminals
Mario Zechner 20d86c3657 feat(p2): Chord v2 cleanup pass
p2 rewritten by the Chord v2 authoring rules (decision "App authoring rules confirmed
by the p2 audit"), in four parts merged together:
- core: session lifecycle (relocate, clone, fork, archive) and search rebuild are
  persisted jobs on a new server store; Sessions v6 with client-chosen ids and visible
  operations; Retry answers with the worker's real outcome; workers push branch,
  subagent and status state to the server; roots take the method's ctx.
- services: models, envs, ports, login, mcp, logs, sharing and voice follow external
  state (self.follow, followNative) instead of copy loops; methods answer after their
  state commits; presence from host.references.
- chat: chat mode, artifacts and prompt resources follow Durable and native state;
  shell commands are Chord jobs (shellId is the requestId); status pushed before
  send and stop answer; race-free draft claim.
- ui: optimistic updates on web (useOptimistic) and terminal (TuiScope.optimistic,
  extended in Chord with a reducer and a pending flag), pending states for long work,
  visible rollback, load waterfalls removed; merged with the one composer and
  immediate first send (ccff9876e) and the folder + button (5a31a6d5f).
docs/optimistic-ui.md describes the pattern.
2026-11-05 18:22:13 +00:00
..
vendor/ghostty feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
commands.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
contract.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
daemon.ts feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
detached.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
envs.ts feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
ghostty.ts fix(p2): touch selection, Copy and Paste in the web terminal 2026-11-05 19:11:58 +01:00
keys.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
log-preload.ts feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
main.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
package.json feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
plain.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
protocol.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
server.ts feat(p2): Chord v2 cleanup pass 2026-11-05 18:22:13 +00:00
service.ts fix(p2): archiving closes an outdated terminal host's terminals through the viewer protocol 2026-11-04 21:56:56 +01:00
terminal-clipboard.css feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
terminal-input.ts feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
Terminal.tsx fix(p2): touch selection, Copy and Paste in the web terminal 2026-11-05 19:11:58 +01:00
tool.ts fix(p2): guest turns may use the terminal tool again, as decided (reverts 2b78884e3) 2026-11-05 00:05:40 +00:00
tui.ts feat(p2): terminal tool for the agent, tmux-style argv, code mode only 2026-11-04 21:56:56 +01:00
wasm.d.ts feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
web.tsx feat: add apps/p2 (imported from pi-private at 7dadff697) 2026-11-03 13:39:06 +00:00
worker.ts feat(p2): Chord v2 cleanup pass 2026-11-05 18:22:13 +00:00