Files
dais/ai
Tommi Kyntola 48db46eca1 dais-top: keyboard lock, passthrough, target process/cwd labels
Three improvements to the cockpit, all about typing into the right window.

Target labels: `target list` now reports what is actually running in each
tmux target — pane_current_command and pane_current_path — so the header
reads `app:claude.0 claude ~/dais` instead of a bare pane spec. One
list-panes -a call (daemon/pane-details) serves every slot and doubles as
the liveness answer, which is cheaper than the per-slot pane-exists? calls
it replaces (those stay as the tmux-down fallback). Rows are indexed under
both the window-NAME and window-INDEX spec forms, because a stored target
may use either. A :focus target can't be introspected (no kdotool here), so
it stays bare. dais-top elides the cwd middle-first and then drops it, and
the command after it, as the header runs out of columns — the ear/armed/live
block is never the part pushed off screen.

Keyboard lock: dais-top is a single-key control surface, so typing into it
by mistake flips real state. `k` ignores every key (each swallowed one is
acknowledged in the footer); Ctrl-] or F12 always leaves a lock, and while
locked any other key just shows the way out. `K` cycles an idle auto-lock
(off -> 15 -> 30 -> 60s, persisted next to the theme file) — off by default,
and it never fires while an overlay is open.

Passthrough: `p` forwards keys to the active target instead of dropping
them, so the window you typed into by accident behaves like the pane you
meant. Printable runs go as text, the rest as chords (Enter, Tab, S-Tab,
arrows, C-<letter>, M-<char>). It refuses a :focus target and falls back to
keylock, re-checking per chunk since voice can move the active slot
mid-pass: ydotool types into whatever has focus, which during passthrough is
dais-top itself — every key would re-enter its own stdin.

New `send` op carries it: raw delivery to the active target, router
bypassed, exactly one of text or keys, chords still executor-validated so an
unknown one is refused rather than typed. Honors dry-run like any other
delivery. Deliberately NOT recorded — an event line per keystroke would turn
events/*.jsonl into a keylogger transcript. Also exposed as
`dais-ctl send [--keys]`, with zsh completion.

executor: the bridge needs unbracketed paste (a single keystroke must look
like typing, not a paste per character), so tmux-type-plan takes a
bracketed? flag; dictation stays bracketed as one deliberate paste, and text
still travels on stdin either way. And a latent bug it turned up: send-keys
"S-Tab" exits 0 but delivers a PLAIN Tab — shift-tab is its own tmux key
name, BTab. That silently broke shift-tab, which is how Claude Code cycles
permission modes.

ai/ records the tmux traps (BTab, per-pane info needs list-panes -a, the
bracketing, the focus feedback loop); tools/README.md documents the keys.
2026-08-17 12:59:04 +03:00
..

ai/

Curated, AI-friendly context for this repository. Treat it as ground truth on the same footing as code — when a fact here disagrees with the code, the code wins and the file gets fixed.

Purpose

Reduce the cost of reconstructing dais-specific context every agent session. Only facts that are hard to infer from the source or the other .md files belong here: platform quirks discovered in field trials, invariants whose violation fails silently, distinctions that are easy to confuse. Nothing that a quick read of the code already states.

How content gets added

  • Small, human-verified chunks — checked against reality before landing.
  • Opportunistic: when a discovery during normal work would have saved an hour had it been written down, it goes here.
  • Code wins on conflict; stale entries get fixed or deleted.

Layout

  • glossary.md — one line per term, TERM :: definition. Grep-friendly.
  • where-to-look.md — task :: path # note pointers. Grep-friendly.
  • gotchas.md — fact :: detail lines; the platform/field-trial knowledge this project paid for. Read before touching audio, tmux, or delivery code.