tiletopia/src-tauri/src
megaproxy d776f962da Context bar: match panes by live cwd via OSC 7 (was keyed on unset leaf.cwd)
The context indicator never showed because it matched on leaf.cwd, which
is almost always undefined (newLeaf sets none; the shell picker never
supplies one) — so the cwd<->transcript match never hit.

Fix: report each WSL pane's real working directory.
- pty.rs: inject PROMPT_COMMAND (forwarded via WSLENV) so the WSL shell
  emits OSC 7 (file://host/path) on every prompt. Default Ubuntu bash
  inherits an env-provided PROMPT_COMMAND; a shell that hard-assigns it,
  or a non-bash login shell, just won't report (indicator stays hidden,
  no breakage).
- XtermPane: register an OSC 7 handler, decode the path, emit onCwd.
- LeafPane: track liveCwd from onCwd and match the session on
  (liveCwd ?? leaf.cwd). OSC 7 fires at the bash prompt right before
  'claude' launches, so liveCwd is exactly claude's launch cwd; it also
  follows 'cd'.

tsc clean. Rust builds on the Windows host; needs runtime verification.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-28 22:57:53 +01:00
..
commands.rs Phase 2: drag-/right-click-a-pane-to-new-window 2026-05-28 18:57:31 +01:00
creds.rs Save SSH passwords in Windows Credential Manager and auto-type at prompt 2026-05-25 20:08:31 +01:00
hosts.rs MCP v2 PR-4: add_host + delete_host + extraArgs sanitiser + third SSH safeguard 2026-05-26 16:04:14 +01:00
lib.rs Replace token-usage panel with per-pane context-fill indicator 2026-05-28 22:43:06 +01:00
main.rs Initial scaffold from M1 spike (tiletopia) 2026-05-22 12:31:29 +01:00
mcp.rs Clear cargo warnings: drop v2.1 classifier scaffold, annotate tool_router 2026-05-26 18:59:04 +01:00
mcp_policy.rs Clear cargo warnings: drop v2.1 classifier scaffold, annotate tool_router 2026-05-26 18:59:04 +01:00
pty.rs Context bar: match panes by live cwd via OSC 7 (was keyed on unset leaf.cwd) 2026-05-28 22:57:53 +01:00
usage.rs Replace token-usage panel with per-pane context-fill indicator 2026-05-28 22:43:06 +01:00
window_state.rs Fix workspace accumulation, tab-close popover, scrollbars, drag ghost 2026-05-28 20:24:09 +01:00