TUICommander — Complete Feature Reference
Linux ARM64 desktop packaging is prepared for 2.1.2. Native package architecture and install/update selection are checked; actual ARM64 installation and desktop smoke remain release gates. See the platform contract.
The parallel Catalog authoring view includes trigger bindings: select a pinned workflow, map installed source fields, preview normalized payloads and inspect overlap revisions before explicit enable acknowledgement. A stored binding that an installed-source prerequisite holds without intake shows its reason (“No intake: …”) next to it in the binding list. Authoring uses the shared desktop/HTTP action contract; native activities require the installed backend catalog/provider. Catalog failures remain explicit while independent saved drafts stay available.
Neutral catalog authoring
The Workflow Designer offers Catalog authoring alongside legacy definitions. Neutral drafts have no development kind. Configuration forms use backend schemas; labels are presentation metadata, and named outcomes and typed mappings retain the backend contract. Pinned metanodes open read only and customize into new drafts. Validation precedes publication. Sample preview and retained run inspection are separate actions; preview never requests activity execution or trigger activation. A compatible neutral backend is required. Missing catalog/transport support is reported explicitly; this authoring view does not establish native runtime parity.
Internal correction metanode contracts retain the selected publication, durable correction limit and source-bound assessment data. The neutral loop owns admission/replay; native committed-candidate review/check assessment and generation fences refuse stale evidence. MCP exposes pinned criteria and the region through the existing neutral action; Designer renders criteria, selected child publication, correction limits and generated contracts; retained scope iteration drives the displayed consumed correction count (#016-358f).
- Configured neutral workflow adapters — One installed native provider delegates saved script/HTTP operations, configured mediated model requests, installed Jira/GitLab project bindings and the enabled Telegram alias. Catalog discovery is local; agent execution rechecks Operator authority and external writes require exact approval. Pure preview needs no run binding. Public starts bind trusted backend callers before dispatch; see workflow transport. Internal correction metanode contracts retain the selected publication, durable correction limit and source-bound assessment data. The neutral loop owns admission/replay; native committed-candidate review/check assessment and generation fences refuse stale evidence. MCP exposes pinned criteria and the region through the existing neutral action; Designer rendering remains pending (#016-358f).
Internal structured workflow scripts now have a bounded, versioned input/result adapter with exact effect identity and conservative mutation reconciliation. Authenticated public start binding is installed; generic Designer script rendering is verified. See the script interface.
-
Scheduled neutral text workflows — Cron bindings reuse the automation timer and durable trigger receipts. Literal text can feed a model, condition and local exact approval inbox in a plain directory. Native repository actions retain their Git scope.
-
Neutral source triggers — Pinned workflow bindings validate typed mappings, preview overlapping filters, deduplicate source generations and retain uncertain effects before PR replacement. See trigger admission.
-
Internal typed workflow HTTP — Installed connector contracts bind credentials, destinations and method semantics; bounded cursor output feeds collections. Configured host composition is installed; authenticated public start binds trusted backend callers. See the contract.
-
Forced steering: Chat Send now, Compose Steer and urgent peer mail interrupt the active Claude Code, Codex or ego turn before submitting the full message, including during Stop hooks.
Prompt composers share Enter/Ctrl+Enter to send, Shift+Enter for newline, and Cmd+S/Ctrl+S to park or swap drafts without sending. See the keyboard model.
Managed worker recovery: after the configurable stall threshold, a silent local managed PTY receives one nudge and its parent one stalled notice that names the stop command. Recovery never stops the PTY; the parent decides. A BLOCKED hold is not silence; running background work is reported in the notice. Independently, a managed child that stops (idle, refused turn, dialog or exit) without a RESULT or BLOCKED for its current task gives its parent one typed child_report mail of subscription kind report within about 15 s. A parent mail to an idle managed child that starts no turn within 20 s gives the parent one typed delivery_failed mail with the reason.
- Typed agent reports — Claude, Codex and ego can send ready/waiting/blocked/failed/dropped/progress metadata and structured questions. Session inventories derive stages from live facts and expose host report time. See Agent Teams.
Internal neutral workflows have typed native workspace/artifact pins, named verification, story transitions, exact-approved commit and canonical local bare push adapters. Native exact-change review uses the existing reviewer and pins the staged artifact; commit requires its passing persisted receipt. Native GitHub publication supports separately approved account/repository/artifact-bound branch and PR actions, with provider read-back receipts. Trusted public caller/run binding remains pending; unbound dispatch refuses. See native workflow operations.
-
Compose queue controls — The Compose N queued list has a labelled Cancel action for each item and keeps Clear all. Supported items also show Steer, which uses the same backend delivery as Session Chat Send now. Claude Code, Codex and ego interrupt the running turn, confirm idle, then submit the selected full text. The tooltip states that the current request stops. Steer is hidden while a native question waits.
-
Pending Chat prompt controls — Busy Session Chat sends wait in TUIC’s existing idle-gate queue on desktop and mobile. Each host-owned Pending prompt has Cancel and, for Claude, Codex and ego, a compact return-key Send now action. Send now uses one forced-steer flow for all three harnesses: reserve the next ready composer, send Escape to a working turn, confirm idle, then submit the selected full text before ordinary queued inputs or mail wakes. The tooltip reads Send now: stop the current request. An idle recipient skips Escape. A prompt already taken by the idle gate is not sent again, and a refused Send now keeps the prompt queued. Native CLI receipts from earlier direct sends remain read-only. (#2589-4bc4).
-
Terminal Ctrl+Enter — Desktop and browser/remote CLI grids use CSI u for negotiated Kitty reporting and identified ego sessions, enabling ego busy-turn steering. Legacy shells and other nonnegotiating agents receive CR. Plain Enter and Compose shortcuts stay unchanged (#2599-0a6b).
-
Native integration trial (WF07) — Disabled-by-default typed workflow integration checks and publishes one pinned no-ff merge, retains proof debt across restart, and keeps cleanup independent. Only isolated trial clones may enable it before repository parity approval; WF08 proof batching is not included (#2514-3d1e).
-
Mobile terminal and AI Chat composers add one space after a pasted HTTP(S) URL when neither the paste nor the following draft character supplies whitespace (#2494-921f).
-
Mobile list identities stay inside their rows; long session and file names use ellipsis, badges and actions remain visible, and Progress text wraps (#2493-061e).
AI Chat shares the active conversation across desktop and mobile for the configured host workspace. The last saved selection wins; reconnect catches up. Open-tab layout, drafts and the session CLI | Chat switch remain per device.
- Mobile Chat queue — Terminal CLI and Chat show pending prompt text and a Queued count above the input, including CLI/desktop additions. Cancel one prompt or clear the queue; delivered entries disappear (#2463-ad1c).
- Chat message menus — User and assistant messages in AI Chat and Session Chat have a quiet ⋯ menu with Copy, raw/formatted Markdown, and Quote reply. AI Chat adds conversational thumbs up/down, heart, celebrate, and comments for completed answers with native IDs. Add/remove actions name the exact source and use the original conversation queue; accepted marks persist across desktop and phone. Offline errors do not change marks. Terminal Chat retains drafted response feedback. Menus stay inside the viewport and support keyboard navigation (#2539-6c53, #2872-6aff).
- AI Chat state from ACP — Each AI Chat shows working while its turn, a tool call or an ego child runs, and waiting while a permission or question is open. The state is derived once in Rust and is the same on desktop, browser and phone; a child in one chat never marks another busy, and an answered question does not return after a reconnect (#2637-c6d3).
- Chat working feedback — Desktop and mobile AI Chat and Session Chat show a theme-accent breathing orb with accessible Working… text. Reduced motion shows a static dot. Existing busy state controls its lifetime; provider retry status, native questions and permissions take precedence (#2535-8b6b).
AI Chat automatically connects on opening, restores the selected conversation, and keeps its transcript visible when stopped. Retry after a failed initial connection starts connecting without Send (#2407-84f5). Session model changes keep the same conversation; the global default affects new ego runs only (#2404-e946).
AI Chat uses a compact composer card: repository pinning and draft parking in the header, an input/send row, and live context plus clickable model/effort/mode details in the footer. Conversation actions remain in ⋯ (#2394-e3c4).
-
Select text in a Markdown file and use Send to AI Chat to append its path, source line range and quoted text to an open conversation, without sending. Desktop and mobile share the selection action. Source lines follow the selected rendered block and ignore invisible Markdown link destinations (#2361-8099). Desktop and mobile selection changes reuse the current document’s reference-link definitions; a source edit refreshes them on the next selection (#2434-73ec).
-
The owning daemon starts allowlisted GitHub issue intake without a UI. Intake keeps all-issue polling across client filter and stop calls, re-reads configuration on repository/settings events and its 30-second tick, and reports unregistered entries in daemon logs (#2323-c294).
Development builds show a dismissible restart warning when Cargo dep-info inputs are newer than the backend executable, or that executable was rebuilt after application entry. Main and used bridge inputs are checked independently; unrelated frontend-only changes stay quiet. An edit followed by a revert still warns, as Cargo would rebuild. Missing build artifacts report identity unavailable. Release builds contain no warning module or debug identity (#2332-3eef). In development, missing local IPC commands explain the backend/frontend version mismatch and manual restart; AI Chat does not offer Retry for that failure. Release and remote-owner errors are unchanged (#2409-aa48).
The Plans column groups Edit plan with Archive plan and keeps the archived toggle with list filters. Edit plan and New story use the main dialog area. The plan editor offers repository-document selection, wrapping title/source fields, an openable full source, a disabled-Save explanation, and conflict-safe draft retention. Native plan title/source corrections use atomic update_plan patches with a stored expected revision across MCP, HTTP, IPC, and CLI. Workflow planning and verification subjects include current plan metadata. Source changes wait until any running plan coordinator/planner finishes or is cancelled; title-only corrections stay available (#2170-d828).
Workflows is a separate space (palette Workflows) with Definitions/Designer and every project run; it links to and from Plans and Stories, which keeps planning and linked plan runs.
Plans and Stories offers an explicit All plans choice for a combined List/Kanban view. Rust supplies the project-scoped stories, visible ids and columns. Rows and cards label their plan; existing filters and archive scopes still apply. Story actions and dependency candidates retain plan ownership. Select one plan for plan actions or story creation (#2358-b0b2).
Native story API and CLI lists support combined state, priority and type filters, with optional cursor pages of 1–100 records; existing full-list reads and dispatch order are unchanged (#2174-6b3f).
-
Desktop frame receipts no longer keep silent terminals redrawing; missed-frame recovery avoids offering the same desktop snapshot twice without recreating its own delivery debt (#2040-16b2).
-
Native MCP tools with long guidance expose compact action contracts and return the full guide through
action=help; existing owner gates and Settings copy remain unchanged (#2069-7347). -
Independent durable peer-mail readers filter routine lifecycle traffic, retain acknowledged cursors across reconnect, and support continuous HTTP/ACP notification delivery (#2004-4760).
-
Mobile session headers offer an open-Markdown dropdown at widths of 768 px or more. Phones keep the same list in More session actions, with stable in-place refreshes.
-
AI Chat tables protect short fields, scroll wide content, toggle exact Markdown source, copy Markdown, and open read-only documents (#1923-c6fb).
-
AI Chat automatically compacts an exhausted ego context through the advertised extension, opens the continuation and replays the original prompt once. Failures and a second overflow stop recovery (#2392-b2e3).
-
AI Chat uses a compact title picker, labelled overflow actions and one-line process disclosures; model and repository sit below the composer (#1958-b67e).
Repository Settings exposes inherited overrides, scripts, team sharing, and a scoped reset card in the shared Settings vocabulary.
Agents Settings uses machine-scoped headers, section cards, and responsive named run-configuration editors, with separate terminal permissions and hibernation sections.
Workspace Settings uses consistent headers, section cards, and aligned fields across Terminal, Keyboard Shortcuts, and Git & GitHub, with the existing preview, bindings, and account flows.
Application Settings pages use shared headers, cards and right-aligned controls. Audio output discovery remains explicit; visual notification and client-local preferences retain their existing scope.
Settings policy foundation (#1786-9cbd): shared owner-service writes enforce host-issued caller authority, write-only secrets and one-use, five-minute human approval for exposure/execution changes. The existing desktop/browser/mobile confirmation dialog shows a backend-built diff. Replacement settings transport publication remains a separate integration step.
Mobile terminal Send supports long-press Queue for the next agent ready window.
Published story workflows can start in Plans and Stories through the owning daemon. When the existing readiness check reports no imported host routing policy, Plans and Stories hides workflow Start controls and shows a neutral sentence. Routing policy controls arrive in a later version. Hosts with a policy retain the existing start flow. Run history renders graph positions, decisions, evidence and paged event payloads, with explicit graph recovery and cancellation. IPC/HTTP and the generated workflow action=run MCP schema share the native run service. Plan start remains visibly unavailable pending plan dispatch. The grouped workflow MCP tool exposes typed story, run, proposal_create, report and launch actions through existing service owners. Proposal retries preserve coordinator ownership and proposal-key idempotency. Legacy workflow tools remain until cutover; scheduled automations stay separate. tuic workflow forwards the same envelope.
Terminal workflow runs remove their own untouched checkouts and branches after verified agent closure. Changed or still-owned work is retained with a run incident and a base-cleanup refusal that names its run. Allocation receipts survive restart; caller-supplied checkouts keep their existing lifecycle. See Run checkout lifecycle.
Native workflow backend definitions support bounded Fork/all-Join regions, nested and collection branches, typed If/else outcomes, persisted resource waits and generation-fenced critic repair. Exclusive Join and old serial replay remain unchanged. Dedicated Designer controls are a separate delivery.
Canonical capability inventory. Update this file when adding, changing, or removing user-visible features. See AGENTS.md for the maintenance requirement.
This document intentionally serves two audiences: users need a searchable overview of what exists, while LLMs and contributors need stable names, shortcuts, settings, and implementation anchors. It is an inventory, not a replacement for the chronological CHANGELOG.
Current version: 2.0.0
Last verified: 2026-09-16
Recent feature delta: See the Unreleased changelog section for what changed recently. Keep this page focused on the current state; do not duplicate the full changelog here.
Desktop AI Chat uses the terminal composer’s pin and blue play buttons. The pin highlights a parked draft; tooltips identify Park, Restore, Swap, Send and Queue. Mobile Park and Stop share the input row with Attach and Send.
AI Chat image paste discovers capabilities on first use and shares clipboard precedence with Ideas, terminal Compose, and terminal input: Finder image filenames allow attachments, while substantive text takes priority. An empty text clipboard flavor does not suppress an available image.
Mobile CLI and log snapshots use the active session identity when hiding agent chrome. Shell output remains visible after agent exit, and retained agent input does not become the shell composer draft (#2178-24da).
Connected PR conversations
PR popovers, unresolved-thread counts and notifications open the exact account-scoped PR in Tasks at Comments, including its first review-thread page. Without a loaded provider they open the GitHub conversation. Tasks PR details return to a matching live sidebar branch/worktree through the normal branch-selection path (#2559-dc9e).
Desktop close and quit
PTY close and kill stop polling when child status is unavailable. A persistent OS status error does not keep the desktop quit cleanup waiting forever.
Rust owns main-window close: Ask (default) offers Background, Quit and Cancel with Remember; Background hides all visible windows and keeps sessions running. Explicit Quit ignores the close preference and confirms if enabled with live terminals. Detached-panel close affects only that panel. This stage keeps the WebView loaded and does not add a tray.
Shared form controls
Desktop and mobile select fields use a shared native Select, with consistent theme colours, visible focus, disabled states and touch sizing. Tasks, Settings, Automations, Git and chat forms also share Input and Textarea controls. Desktop fields are 36px; mobile fields retain 44px touch targets. The Tasks List, Board and Roadmap switch supports arrow keys, Home and End.
Tasks create
Tasks forms show provider-required fields with inline errors that preserve typing focus. User fields can search provider accounts; labels without static choices accept comma-separated text. Jira supplies configured Project and selected Type, and encodes sub-task Parent keys for creation.
Tasks roadmap component
The host-rendered roadmap shows provider date fields on a month or quarter timeline. Date-only values retain their day; timestamps use the viewer’s local time zone. Undated or invalid schedules stay in a side list, and single dates show as milestones. Both lists use virtual rows and provider cursor pagination. The host can choose start and target field IDs; the fallback uses the first two date descriptors in order. The component is ready for Tasks shell integration and does not add a tab by itself.
Tasks list component
Jira searches accept jql: and text: prefixes. Intended JQL failures keep the
server parse message and typed query in Lists and Boards; plain text and issue-key
lookups retain their fallback behavior.
The generic Tasks list renders data-only work-item providers with account-scoped sources, saved presets, field filters, debounced search, sorting, virtual rows, and provider cursor pagination. Failed refreshes retain rows with a stale label. Filters, sort and group sit behind a Filters button that shows the active count. The Tasks shell uses container queries: below 700 px the list and the detail take turns, with a Back to list control. Rows show the open task, assignee, age, a state shape and a mark for tasks linked to a worktree; a Filters checkbox lists only linked tasks among the loaded rows. The component is available for Tasks shell integration; it does not add a tab by itself.
ego Perimeter Settings
- Settings > AI Chat edits ego roots, root access, read allowlists, writable directories and network mode through the configured CLI.
- Preview comes from ego’s effective view for the AI Chat workspace/profile.
The exec-sandbox badge reports unverified enforcement when ego says
not_checkedand renders measured capability arrays without inferring enforcement from backend names.
How to use this reference
- Users: start with the relevant section, then follow its user-guide link.
- LLMs and contributors: search for the feature name, shortcut, setting, command, or source anchor. The bullets describe current behavior, including important limitations.
- Release work: update the relevant section when behavior changes, and add the chronological explanation to
CHANGELOG.md.
User-guide map
| Feature area | User guide |
|---|---|
| Terminal, tabs, splits, and search | Terminal Features |
| Sidebar, repositories, and branches | Sidebar · Branch Management |
| Git worktrees | Worktrees |
| AI agents and agent teams | AI Agents · Agent Teams |
| Visual element inspection | Design Mode |
| GitHub, PRs, and CI | GitHub Integration |
| Smart Prompts and Prompt Library | Smart Prompts · Prompt Library |
| Settings and shortcuts | Settings · Keyboard Shortcuts |
| Plugins and MCP | Plugins · MCP Proxy Hub |
| Remote, mobile, and browser modes | TUICommander Modes · Remote Access |
| Setup and recovery | Getting Started · Troubleshooting |
| Project history, mobile outcome-first list and full hand-off Flow | Project Progress |
| Native plans and stories | Native plans and stories |
Selecting a New plan source that already belongs to an archived plan shows its title and ID with instructions to enable Archived plans, select it, and choose Restore plan. This does not create a duplicate or restore the plan implicitly; an active source match still selects its existing plan.
Story details show the persisted origin, plan step, revision and claiming session. A live terminal name appears beside the stable session ID; closed or unavailable terminals retain the ID. Transition history shows committed commands, revisions and actors in backend order, with Refresh history and explicit loading, error and empty states. New story offers Native or Plan step origin; a plan-step story requires a step label.
New story and Edit plan keep the primary action, then Cancel, together at the bottom-left. New story has no permanent manual-prefix hint below acceptance criteria; [MANUAL] criteria remain supported. Story Edit stays in the story header. Disabled Add dependency exposes its reason as a native tooltip and accessible description.
Plans and Stories combines open/closed and optional story-type filters, including untyped historical stories, with a session-retained List/Kanban switch that also survives detach and reattach. Rust supplies the shared display projection; the native board follows the Wiz Kanban layout without importing plugin code. Cards support pointer-based phase moves to backend-provided legal destinations; List rows and story detail share revision-checked Phase selectors. Illegal or rejected drops retain placement and show the reason.
Native stories support one revision-checked update_story patch through MCP, CLI, IPC and HTTP. It amends metadata including nullable story type, optional problem/risk, ordered criteria and dependencies on unclaimed Backlog/Ready stories without active run ownership. Changed requirements lose checks; priority-only edits keep them, and workflow evidence follows existing fingerprints. StoriesDialog provides one revision-checked Edit form with Save/Cancel, retained conflict drafts, and metadata, criteria and dependency fields. QA and other started work are not editable. Criteria use separate ordered entries so multiline requirement text is preserved during edits. Edited titles must contain 1 to 200 Unicode characters after trimming. Invalid titles disable Save without truncating the draft.
Native plans and stories are available through tuic story, the story MCP tool, desktop IPC, and authenticated HTTP. They support criteria, dependencies, revision-checked transitions, and live-tab claims. WontFix closes cancelled scope but never satisfies a prerequisite; a human can remove a cancelled dependency from a Backlog story. In manual plans, approving a prerequisite immediately releases eligible dependents. Plans with a workflow run require current integration receipts before release. Story import/export is outside this release.
Plans and Stories keeps a stable, viewport-bounded size while tabs and selections change; long content scrolls inside. On desktop, its header can detach it into a resizable window and bring it back through the shared panel controls. The Plans and Stories dialog provides a manual project view on desktop and in the browser: choose a top-level Markdown plan from the project, add a path or link when needed, create stories, inspect criteria and dependency status, identify transitively abandoned prerequisites, remove a direct cancelled prerequisite, start work without a terminal, check criteria, submit reviews, approve, and block outcomes. It renders the service’s cancellation count, all-cancelled flag, and plan state, including while a story is selected. A coordinator or independent reviewer may approve after checking the acceptance criteria; the session that claimed a story cannot approve it. Approval records the acting session or local API provenance.
Versioned workflow definitions are available through IPC and HTTP. The Plans and Stories Designer tab can select a seeded draft, add nodes by dragging (mouse, pen or touch) to a canvas position or by clicking, move nodes by six-dot handle or arrow keys with a persisted layout, apply Author presets (Planner, Research, Prompt draft, Mockup, Implement, Validate) that keep the host route authoritative, add For each and Splitter regions, connect, re-label and remove outcome links, edit node settings, save, and publish. Published revisions are immutable and validated before use. The two built-in templates are Story delivery and Resolve plan; automatic graph execution is still under development.
Durable workflow run storage records event history, pinned graph revisions, node attempts, external effect intents, TUIC-run check receipts, and checked integration receipts. Desktop and HTTP clients can start and inspect a run, list a plan’s runs, replay events, and send explicit run commands. The Plans and Stories dialog shows a run timeline with paged events. A managed MCP caller can explicitly launch a pinned attempt in a registered isolated worktree, create a plan story with an idempotent proposal key, and submit a typed outcome bound to the spawned session. Story attempts with overlapping or unknown file scope are serialized, and story worktree assignments are recorded before spawn. Dependents remain held until the accepted prerequisite has a current canonical integration receipt; an operator performs the merge explicitly in this slice. An unrelated canonical commit requires a fresh TUIC-computed recertification with pinned checks before release resumes. Reviewer reports can retain criterion-indexed findings and an artifact digest as advisory evidence. A worker input request pauses its run until an operator records an answer and resumes it; valid reports from other running workers remain durable during that pause. The daemon now owns run recovery, serial graph positioning, explicit graph resume, cancellation and idle duration timers under a database owner lock. Serial Agent effects, independent story policy and plan dispatch execute in the owning daemon; public story graph starts and history controls are available. Public API plan starts use slice E dispatch; the plan UI control remains visibly unavailable. E2E evaluation remains pending.
1. Terminal Management
-
Unobstructed terminal Find — Search opens below the Context and CLI/Chat switch row. Search controls wrap inside narrow panes while the view switch remains reachable.
-
Bounded input frame priority — Desktop and browser/PWA input can wake the existing grid ticker after reader-applied output, without waiting for animation rate floors. A rolling send budget preserves output coalescing; newer reader work retains its bounded retry across a send. Desktop receipt gates and synchronized output remain in force.
On desktop and mobile CLI views, adjacent 💬 answer paragraphs share one continuous green left bar without a background tint (Paper uses its darker success green for contrast), including blank rows between them. Mobile places this bar in a separate gutter outside the text box, so column-zero text stays clear and existing agent indentation stays unchanged. An unmarked prose paragraph after a blank row ends the answer; an uninterrupted indented continuation stays inside. The CLI gutter joins separate marked answer sections across internal blank rows and indented section headings when a later marked answer closes the gap. Trailing unmarked prose, unmarked list siblings, tools, prompts and status rows stay outside that gutter; extracted Answers and Chat keep their semantic paragraph boundaries. Lists, tables, quotations and fenced code remain attached to the answer. Fenced blocks keep a separate Copy row above the code on desktop and mobile, without covering wrapped text. A non-answer output row or prompt ends the region. The CLI blanks only the marker glyph cells; selection and search retain their grid coordinates. Clipboard copy removes answer-prefix markers through the same helper used by AI Chat answer buttons (including mobile) and selectable Answers text. Inline emoji and fenced examples stay literal. Chat uses the same answer extent and strips every paragraph marker.
Terminal prompt colours apply to Chat user messages only. The CLI grid retains prompt scrollbar ticks and answers-only prompt grouping without tinting prompt rows.
- Tablet keyboard input — Touch taps and mouse presses focus the same terminal input. Soft-keyboard text and deletion use the shared input handler. Primary presses suppress the browser default canvas focus change.
Terminal text retains stored combining marks through rendering, scrolling, copy and exact-codepoint search, including marks arriving in a later output chunk. Search and link positions account for the difference between grid cells and Unicode string offsets. The existing bound of nine zero-width characters per cell and the configured history limit still apply.
1.0 Design Mode for agent terminals
The extension offers Let agents capture any site as an optional Chrome all-sites grant. Approved capture needs no further browser-action gesture; without the grant, temporary activeTab access remains available. Capture consent is separate from agent eval and remote error-read consent. The sidebar reports when Chrome does not add a separate eval grant.
Agents can use ui action=design_start/stop/status/reload/navigate/screenshot/errors/eval with the same armed-recipient ownership and the sidebar host consent. Existing Design Mode denials remain effective. The separate design_mode tool is retired without an alias.
The extension sends a heartbeat every five seconds. A stale mode stops after 60 seconds without a heartbeat, or ten minutes after Start if the extension has not connected. Agents can request a page reload with ui action=design_reload repo_path=<repoPath>; the worker reloads the reviewed tab once per new sequence.
Right-click an HTTP(S) terminal link (including localhost) and choose Start in Design Mode, then Edge or Chrome, to open that exact page with the terminal agent connected. Agent coordinators use ui action=design_start session_id=<terminal> url=<page> for layout work; stop uses the returned repoPath.
- Start from an agent terminal’s context menu or the Command Palette. Choose Edge or Chrome; TUIC uses a dedicated profile per repository and browser. The launching terminal remains the default recipient and carries the armed D badge.
- Design Mode loads the profile’s own extension automatically on a cold Edge launch. A single discovered dev server opens directly; otherwise, the page explains how to choose or start one. Running profiles must be closed before starting again; branded Chrome reports an unsupported-autoload error. The sidebar lists configured URLs and live servers attributed to this repository and its linked worktrees, with fresh PTY advertisements validated against listeners.
- Pick element selects once, then browsing resumes. Multi-pick, Escape and Stop control longer collection. Cards keep extraction evidence, optional screenshots and independent comments; delete removes a card. The sidebar offers live local agents from the same repository and reports an exited recipient without switching silently.
- Send to agent sanitises and fences page evidence in Rust, then uses the same idle gate as Markdown reviews: deliver now when idle, queue when busy. Failed sends retain the cards; retry keys prevent duplicate delivery. See the pilot guide for setup and validation limits.
1.1 PTY Sessions
-
Mobile state filters — Tap Working, Idle or Awaiting counters to select any combination of session states. No selection shows all sessions. Counts stay global; state filters combine with search and sorting, and zero-count states remain selectable.
-
Up to 50 concurrent PTY sessions (configurable in Rust
MAX_SESSIONS) -
Each tab runs an independent pseudo-terminal with the user’s shell
-
Terminals are never unmounted — hidden tabs stay alive with full scroll history
-
Session persistence across app restarts (lazy restore on branch click); only agent tabs are restored — plain shell tabs are discarded and a fresh terminal is spawned instead
-
Orchestrated PTYs show a task description above the terminal alongside the last submitted user prompt; MCP callers can supply
pty_description, while spawn-only orchestration schemas fall back to a compact summary of the task prompt without changing agent launch or prompt-delivery behavior -
Managed-agent automation submits a command with one MCP
session action=submitcall: an idle empty composer is claimed atomically, raw-mode text/Enter framing cannot interleave with another writer, and the same response reports terminal acknowledgement or a precise non-retryable timeout. The action never queues or overwrites a draft;session action=inputremains write-only compatibility, with a text-to-Enter gap for detected agent sessions -
Agent session restore shows a clickable banner (“Agent session was active — click to resume”) instead of auto-injecting the resume command; Space/Enter resumes, other keys dismiss
-
Foreground process detection (macOS:
libproc, Windows:CreateToolhelp32Snapshot) -
PTY environment:
TERM=xterm-256color,COLORTERM=truecolor,LANG=en_US.UTF-8. A parentNO_COLORis stripped (sanitize_pty_parent_env) so a TUICommander launched from Codex does not leak that opt-out into independent sessions; per-command flags and per-agent environment can still request monochrome deliberately -
Pause/resume PTY output (
pause_pty/resume_ptyTauri commands) — suspends reader thread without killing the session -
Remote replay health — Stream failure, unreadable frames and initial replay stalls show a persistent error toast. Reconnect success requires a delivered frame; healthy idle terminals have no output-silence deadline.
-
Mobile dictated drafts — The first local edit replaces any different draft in the current terminal input snapshot, without importing that draft into the mobile composer. The slash quick key inserts
/only when tapped; it is not a modifier. Claude slash-command messages display their command name and arguments rather than transcript XML. -
Mobile Claude CLI / Chat — Switch in the existing session header; the composer and terminal stream stay mounted. Both desktop and mobile let the backend decide Claude transcript binding and show a notice when unavailable. Returning to CLI follows the latest output. Fresh session snapshots clear stale agent/question controls after exit, including when the output socket pauses; the composer then targets the remaining shell.
-
CLI / Chat view — Claude, Grok, Codex and ego terminals switch between the grid and a conversation view with docked Compose input, built from the agent’s session file (Grok: its
chat_history.jsonl, bound only through the exactactive_sessions.jsonregistry entry; including older prompts, human text/image follow-ups queued while Claude is busy, replies, folded tool cards, image/PDF markers and model-change cards). ego uses the exact live PID-to-lease session binding and the documentedego export --format transcript --aftercontract, not private conversation storage. Completed messages and tool lifecycle updates use the shared ticker; goal continuations and compaction checkpoints are notices. An ego executable with transcript v1 support must be configured. Desktop and mobile support Claude, Grok, Codex and ego Chat. The grid is hidden, never unmounted. On desktop, returning to CLI restores keyboard focus for the active terminal; unavailable Chat does not take focus from another editor, and inactive panes never take focus. Progress-toast navigation selects the reporting terminal, a surviving destination tab, or an empty area; it never retains another repository’s Chat composer. -
Readable session edits — Expand a Chat tool card to read structured old/new edit blocks with aligned four-space tab stops and horizontal scrolling.
-
Native terminal Chat questions — Desktop and mobile expose exported native question titles and choices. Answers use agent-specific PTY keys, not Compose submission or ACP replies. Desktop preserves transcript binding and returns to CLI for unexported or free-form prompts.
-
Pending terminal Chat prompts — Prompts submitted through the open desktop or mobile Chat composer appear immediately as muted Pending bubbles in send order, including sends while Claude or Codex is busy. Matching new native transcript messages replace them without a duplicate bubble and retire older unmatched sends, so a local slash command cannot block later receipts. This is local send feedback, not a cancellable CLI queue; prompts typed directly into the CLI or sent by another client cannot be shown before the native transcript records them. Expanded tool rows use theme colours for Bash/execute commands, flags, strings and operators. Read, Edit and Write keep the tool name separate from the path; other tools retain readable text. The collapsed activity summary and row sizing are unchanged.
-
Mobile session Chat appearance — The session detail CLI/Chat view shares desktop prompt/answer theme tokens and transcript typography. Mobile keeps its existing touch-sized switch and native input; AI Chat is a separate surface.
-
Deferred update restart — After an in-app update installs, TUICommander restarts only when no session is busy or awaiting input; the APP UPDATE notification shows how many are busy and offers Restart now (with confirmation). Turn off in Settings → General → Updates → Wait for agents before restarting (
defer_update_relaunch, default on). -
Eager resume after an update — When the app restarts to apply an update, every agent tab with a confirmed session id resumes by itself on every branch, without selecting the branch first. Tabs without a confirmed id keep the click-to-resume banner. Turn off in Settings → General → Updates → Resume all agents after an update (
eager_resume_after_update, default on). -
Terminal Chat reading layout — One reading card per turn with whole-answer Copy on hover or focus. The green bar encloses adjacent CLI-owned answer blocks in an outer region, not the whole message, on desktop and mobile. A marked item at any nesting level puts its intact outer list inside the rail; unmarked items remain context without acquiring answer ownership. Bullets and numbering always stay to the right of the rail; 96-character answer and 80-character prompt limits, collapsible two-line terminal pastes, and compact system notices. Tool activity stays in its collapsed row; Claude Bash uses its description when present. No time separators are shown because transcript entries carry no timestamp.
-
Codex tool activity — Trusted native tool hooks restore Working for the exact session and turn. Native user-input questions set Input and settle on their own result, prompt replacement, stop, interruption or exit. Background tools preserve open human approvals; permission-owner hooks await upstream support (#2626-f570, #2695-41da).
-
Current tool readout — The mobile session card and details sheet show the tool an agent runs now, from verified native metadata of Claude, Codex, Grok, ego terminals, Pi and OpenCode. Name only (64 characters), never arguments; one tool end never hides another live tool; turn, session and shell end clear it. Metadata only, never a state change (#2636-5551).
-
Codex hook trust — Explicit global installation trusts only exact TUIC definitions returned by the installed CLI and verifies native readback. Missing support or unverified trust shows review in
/hooks, never an operational badge. Status reads do not grant trust. -
Codex terminal Chat — Completed rollout messages and tools use the shared ACP transcript after a native SessionStart hook supplies exact ownership. Live PID, rollout id and cwd are validated on every read; heuristic IDs never enable Chat. Requires trusted TUIC native hooks on macOS/Linux; unsupported or unbound terminals keep Chat unavailable.
-
Intermediate Chat text — Assistant text that a tool call follows in the same turn renders smaller in the terminal Chat view, AI Chat and mobile chat, but keeps the normal readable text colour in dark and light themes; the last text of a turn keeps the normal size. Switch it off in Settings → Appearance → Chat → Mute Intermediate Text (
chat_mute_intermediate_text, default on). -
Prompt image previews — Path-based image attachments in Pending bubbles, session Chat, AI Chat messages and queue lists share framed previews above the text. One image uses one frame, two sit side by side, and three or more use a two-column grid. Missing images show an unavailable placeholder; the raw
[image: path]markers do not appear in the message text. -
Chat transcript presentation — Harness notices use compact system notes, image placeholders use attachment chips, adjacent thinking blocks share a disclosure, and TUIC answers retain the CLI highlight. Historical tool cards show status without fabricated execution timing.
1.2 Tab Bar
- Create:
Cmd+Tfor a plain terminal;+opens the agent launch menu (Alt/Option-click opens a plain terminal) - Close:
Cmd+W, middle-click, context menu - Reopen last closed:
Cmd+Shift+T(remembers last 10 closed tabs) - Switch:
Cmd+1throughCmd+9,Ctrl+Tab/Ctrl+Shift+Tab - Hold
Cmdalone (Ctrlon Windows/Linux) for 450 ms to reveal the first nine terminal-tab shortcuts; other keys, mouse buttons, scrolling, release, blur, or visibility changes dismiss the hints. - Rename: double-click tab name (inline editing)
- Reorder: drag-and-drop with visual drop indicators (works for all tab types: terminal, diff, editor, markdown, plugin panels)
- Tab status dot (left of name): grey=idle, blue-pulse=busy, green=done, purple=unseen (completed while not viewed), orange-pulse=question (needs input), red-pulse=error
- Tab type colors: red gradient=diff, blue gradient=editor, teal gradient=markdown, purple gradient=panel, amber gradient=remote PTY session
- Remote PTY sessions (created via HTTP/MCP) show “PTY:” prefix and amber styling
- Progress bar (OSC 9;4)
- Context menu (right-click): Close Tab, Close Other Tabs, Close Tabs to the Right, Detach to Window, Copy Path. Terminal tabs show clickable Session:
and Alias: rows when available. Each row copies its displayed value; the tab menu does not show a process ID. - Copy Path appears on every file-backed tab — diff, editor, markdown, HTML preview, and a plugin panel opened from a
file://url — and copies the ABSOLUTE path with$HOMEshortened to~. The tab stores keepfilePathrelative to the tab’s filesystem root, so the root is joined back on before copying - “Open in Browser” on a
file://plugin panel hands the file to the OS default application, not to the URL allowlist (which permits only http/https/mailto, because the URLs it was built for come off a PTY)
- Copy Path appears on every file-backed tab — diff, editor, markdown, HTML preview, and a plugin panel opened from a
- Context menu shortcut chords — while a context menu is open, pressing a menu item’s keyboard shortcut chord (modifier + key, or Enter) fires that action directly without needing to click. Modifier-only keystrokes (Cmd, Shift, etc.) do not close the menu so multi-key chords can form; any other non-matching key closes the menu normally
- Detach to Window: right-click a tab to open it in a floating OS window
- PTY session stays alive in Rust — floating window reconnects to the same session
- Closing the floating window automatically returns the tab to the main window
- Requires an active PTY session (disabled for tabs without a session)
- Overflow menu on scroll arrows (right-click) shows clipped tabs; the
+button always stays visible regardless of scroll position +button: click, right-click or long press (500 ms) opens the agent launch menu below the button, with each agent and run config listed directly. The most-used choice in the active branch comes first; a branch with no history uses repository counts, and ties keep the configured order. Successful menu launches persist in local UI preferences across restarts. Choose Terminal, Alt/Option-click+, or useCmd/Ctrl+Tfor a plain terminal Each row shows the agent icon, with a separate run-config label when multiple configs exist and a check for the default. The picker uses larger rows; Terminal has its own icon.- Tab pinning: pinned tabs are visible across all branches (not scoped to branch key)
- Right-click a sidebar session row to add it to the Global Workspace, or remove it when already included. This uses the same membership action as the tab context menu.
1.3 Split Panes
- Vertical split:
Cmd+\(side by side) - Horizontal split:
Cmd+Alt+\(stacked) - Navigate:
Alt+←/→(vertical),Alt+↑/↓(horizontal) - Close active pane:
Cmd+W - Drag-resize divider between panes
- Drag to split: drag a tab from the tab bar or a pane tab strip onto the left, right, top or bottom edge of a pane (or of the unsplit terminal area) to split it 50/50 with the tab on that side. A highlight shows the half the tab will take. The pane center moves the tab into that pane. An edge that cannot split (depth limit, or the tab is the only one in that pane) acts as the center. A pane that the move leaves empty closes
- Up to 6 panes in same direction (N-way split)
- Split layout persists per branch
1.4 Zoom (Per-Terminal)
- Desktop session Chat and AI Chat share a 14px default reading scale and the terminal zoom delta; AI Chat follows the active terminal. Active and all-terminal zoom actions update both Chat views; mobile keeps its device-local reading preference
- Zoom in:
Cmd+=(+2px) - Zoom out:
Cmd+-(-2px) - Reset:
Cmd+0 - Range: 8px to 32px
- Current zoom shown in status bar
1.5 Copy & Paste
- Copy selection:
Cmd+C - Selection follows retained text during output and history eviction; evicted endpoints are cleared instead of selecting replacement rows. Copy requests rebase against their displayed history snapshot under the backend grid lock.
- Paste to terminal:
Cmd+V - Trailing whitespace trimmed — All copy paths (Cmd+C, Ctrl+C, copy-on-select) strip trailing spaces from terminal rows
- Claude gutter normalization — Multi-line terminal selections remove Claude’s repeated non-breaking-space plus
▎visual margin while preserving isolated block characters and the content’s indentation - Claude prompt copy — Selections remove the composer prompt marker and continuation margin, rejoin width-supported wraps, and preserve typed breaks and pasted glyphs. Composer cleanup requires a column-zero origin outside VT soft-wrap continuations; partial body selections remain literal.
- Copy on Select — When enabled (Settings > Terminal > Copy on select), selecting text in the terminal automatically copies it to the clipboard. A brief “Copied to clipboard” confirmation appears in the status bar.
- Copy feedback (Cmd+C) — Copying via Cmd+C shows “Copied to clipboard” in the status bar, consistent with copy-on-select and Ctrl+C paths.
- OSC 52 clipboard writes — Terminal programs (tmux, vim, ssh yank) can set the system clipboard via the OSC 52 escape sequence. Because any displayed file/log can also emit it, each write surfaces a non-blocking “Clipboard updated by <session>” notice, and the behavior can be disabled entirely via Settings > Terminal > “Allow OSC 52 clipboard writes”. Suggestion chips (OSC 7770
suggest=) carrying shell metacharacters are inserted without auto-Enter so a click cannot silently execute a spoofed command.
1.6 Clear Terminal
Cmd+L— clears display, running processes unaffected
1.7 Clickable File Paths
- File paths in terminal output are auto-detected and become clickable links; a sentence period after a path is excluded from its filesystem target
- Terminal directory links open the File Browser at the resolved directory; missing paths show a notification without opening a tab
- Existing absolute paths outside registered repositories, including files under hidden directories, open in the native Markdown viewer or editor from terminal links
- Paths validated against filesystem before activation (Rust
resolve_terminal_path) .md/.mdx→ opens in Markdown panel; preview-capable files (HTML, PDF, images, video, audio, plain text/data) → open in the Preview tab (section 3.15); all other code files → open in the built-in code editorfile://URLs are recognized in addition to plain paths — the prefix is stripped and the path resolved like any other- Verified terminal link underlines remain visible during unrelated spinner redraws, including wrapped links and file paths beside a changing tool indicator.
- OSC 8 hyperlinks: programs that emit hyperlink escape sequences (e.g. Claude Code, modern
ls) produce clickable links; hover underline spans the full link text (viaterminal_hyperlink_spanbackend API) - Supports
:lineand:line:colsuffixes; the built-in editor moves to that position even when the file is already open - Single left-click opens the link instantly (UI-first — opening is a primary action, not gated behind a modifier); drag-select over a link still copies text without opening
- Right-click on a link shows a context menu with Open and Copy link (copy the resolved path/URL without opening). Right-clicking elsewhere shows the standard terminal context menu
- Recognized extensions: rs, ts, tsx, js, jsx, py, go, java, kt, swift, c, cpp, cs, rb, php, lua, zig, css, scss, html, vue, svelte, json, yaml, toml, sql, graphql, tf, sh, dockerfile, and more
1.8 Find in Content
Cmd+Fopens search overlay — context-aware: routes to terminal, markdown tab, or diff tab based on active view- Terminal: CLI incremental search with highlight decorations; Chat searches the visible transcript across inline Markdown, skips collapsed thinking bodies, and selects matches with next/previous navigation. Switching views closes search and clears highlights.
- Markdown viewer: DOM-based search with cross-element matching (finds text spanning inline tags)
- Diff viewer: DOM-based search via SearchBar + DomSearchEngine (same engine as markdown viewer)
- Yellow highlight for matches, orange for active match
- Navigate matches:
Enter/Cmd+G(next),Shift+Enter/Cmd+Shift+G(previous) - Toggle options: case sensitive, whole word, regex
- Match counter shows “N of M” results
Escapecloses search and refocuses content
1.9 International Keyboard Support
- Terminal handles international keyboard input correctly
- Rate-limit false positives reduced for non-ASCII input
1.10 Move Terminal to Worktree
MCP worktree creation registers the new workspace without moving a caller whose
cwd is outside it. Agents working through git -C can record an association with
session action=declare_worktree worktree_path=/absolute/path. That association
sets only the caller’s tab placement without changing shell cwd. Later cwd reports
and restore keep that placement while the declared checkout exists. Removing or recycling a
worktree closes only terminals whose current cwd lies inside it; unrelated tabs
filed under a stale workspace survive and are re-homed. See MCP backend.
- Right-click a terminal tab → “Move to Worktree” submenu lists available worktrees (excluding the current one)
- Selecting a worktree sends
cdto the PTY; OSC 7 auto-reassigns the terminal to the target branch - Also available via Command Palette: dynamic “Move to worktree: <branch>” entries appear when the active terminal belongs to a repo with multiple worktrees
- Only shown when the repo has more than one worktree
- When a worktree is created while an agent is running, Open Worktree opens or focuses a terminal rooted there; the agent terminal remains attached to its original branch and working directory
1.11 OSC 7 CWD Tracking
- Terminals report their current working directory via OSC 7 escape sequences
- Parsed in the Rust backend from PTY output and stored per-session as
session_cwd - When a terminal’s CWD falls inside a known worktree path, the session is automatically reassigned to the correct branch in the sidebar
- Sessions spawned into a new sibling worktree refresh their registered repository before final tab placement
- Enables accurate branch association even when the user
cds into a different worktree from a single terminal
1.12 Kitty Keyboard Protocol
- Supports Kitty keyboard protocol flag 1 (disambiguate escape codes)
- Per-session flag tracking via
get_kitty_flagsTauri command - Enables correct handling of
Shift+Enter(multi-line input),Ctrl+Backspace, and modifier key combinations in agents that request the protocol (e.g. Claude Code)
1.13 File Drag & Drop
- Drag files from Finder/Explorer onto the terminal area or any panel
- Uses Tauri’s native
onDragDropEventAPI (not HTML5 File API — Tauri webviews do not expose file paths via HTML5) - Active PTY session: dropped file paths are forwarded directly to the terminal as text (enables Claude Code image drops and similar workflows)
- No active PTY session:
.md/.mdxfiles open in Markdown viewer, preview-capable files open in the Preview tab (section 3.15), all other files open in Code Editor - Multiple files can be dropped at once
- Visual overlay with dashed border appears during drag hover
- Global
dragover/droppreventDefaultprevents the Tauri webview from treating drops as browser navigation (which would replace the UI with a white screen) - macOS file association:
.md/.mdxfiles registered with TUICommander — double-click in Finder opens them directly - Drag to external apps: Drag files from the File Browser to external applications (Finder, email clients, etc.) using native OS-level drag via
tauri-plugin-drag. Works alongside internal drag & drop (tab reorder, split panes)
1.14 Cross-Terminal Search
- Type
~in the command palette (Cmd+P) to search text across all open terminal buffers - Results show terminal name, line number, and highlighted match text
- Selecting a result switches to the correct terminal tab/pane and scrolls to the matched line (centered in viewport)
- Minimum 3 characters after prefix
- Also accessible via the explicit “Search Terminals” command in the palette
1.15 Refresh Terminal (Cmd+Shift+L)
- Rebuilds the terminal renderer to fix corrupted glyphs (WebGL atlas issues, font rendering artifacts)
- Does not clear content or affect the PTY session — purely a visual refresh
- Action name:
refresh-terminal
1.16 Terminal Bell
- Terminal Bell — Configurable bell behavior when the terminal receives a BEL character (
\x07). Four modes:none(silent),visual(screen flash animation),sound(plays the Info notification sound),both(flash + sound). Setbell_styleinconfig.json; Settings has no control for it.
1.17 Alternate-Screen Scrollback
- Fullscreen apps (
gh run watch,less,man, TUIs) run on the terminal’s alternate screen, which per XTerm semantics has no scrollback — output past the bottom of the window is normally lost and no scrollbar is shown - TUICommander keeps those lines with a user-visible save-to-scrollback behavior: scrollbar, wheel, and scrollbar drag all work while the app is running
- Output is byte-faithful: only lines that genuinely scroll off the top are kept. An in-place redraw produces no history, while a refresh taller than the viewport (as emitted by
gh run watch) keeps each overflowing snapshot, including repetitions - The alternate grid has its own bounded, ephemeral history. It is wiped on every enter/exit and never mixes with the shell’s history
- Entering or leaving the alternate screen atomically invalidates scroll, selection, search, link, and row-cache state before the new grid is painted
- Apps with mouse reporting (
vim,htop,lazygit,grok --no-alt-screen) still receive the wheel themselves —Shift+wheelor a scrollbar drag scrolls TUICommander’s history - An inline TUI that enables mouse reporting without
1049h(grok --no-alt-screen) is classified as FullscreenTui and excluded from the durable log the same way alt-screen is. Grid history stays so the scrollbar works.
1.18 Scrollback History Overlay — removed
The experimental read-only scrollback overlay (AltScreenHistory) and its scrollHistoryEnabled flag were removed in 86471444. The terminal’s own scrollback and search replace it.
1.19 Command Blocks
Terminal output is segmented into command blocks — one per prompt+output cycle. Blocks are detected via OSC 133 shell integration markers (A/C/D sequences) or OSC 7770;block= agent-emitted markers. For Claude Code, heuristic detection synthesizes blocks from tool call headers (⏺ ToolName(args)).
- Scrollbar marks — Color-coded indicators on the scrollbar for each command block boundary. Provides a visual map of command history at a glance. Toggled by Show scrollbar marks in Settings > Terminal (
show_scrollbar_marks, on by default). The flag covers the history markers — these ticks and the user-prompt ticks below — and deliberately not the search-match ticks, which stay visible so a search never silently draws nothing - User-prompt scrollbar markers — A distinct green tick on the scrollbar marks each line where the user submitted a prompt to the agent (recorded from the OSC 7770
state=promptthe submit-prompt hook emits; tool-callstate=busycarries no row viauserPromptLines). These are separate from command-block boundary marks and help you quickly locate your own prompts in long sessions - Timestamp overlay — Hold
Ctrl+Cmdto reveal timestamps showing when each block started, displayed as relative time (e.g. “2m ago”) - Gutter click — Click the gutter area to select the entire block output for easy copying
- Block folding — Collapse/expand block output with
Cmd+Shift+.toggle. Folded blocks show a summary line. Backend stores fold state per session viaset_block_foldTauri command - Block-scoped search — Toggle with
Cmd+Shift+Bto restrict terminal search to the current block only - Block navigation —
Cmd+Shift+Up/Downjumps between block boundaries - Block cap — Sessions are capped at 500 command blocks; oldest blocks are evicted when the cap is reached
- Settings — Configure block features at Settings > Terminal > Terminal: show/hide timestamps, enable/disable folding
1.20 Compose Panel (Cmd+I)
A multi-line editor docked under the terminal for writing a prompt without fighting the agent’s own input box.
- CLI Compose layout — Desktop terminals reserve the minimum editor row and footer when Compose opens. Longer drafts overlay terminal output without repeated PTY resizing; closing restores the full viewport. Pinning keeps the same reservation. Leaving Compose focus collapses its extra height to reveal terminal input; refocusing restores growth and retains the draft.
- Chat input — Chat opens and focuses Compose automatically below the conversation. It stays docked after send or queue and clears submitted text. Chat hides the close and pin controls;
Escreturns to CLI, where permission prompts must be answered. Returning to CLI restores the tab’s previous open/pin state, and unsent drafts survive both directions, including while send or queue is pending - Send now —
Enter(or the ▶ button) types the text into the composer and submits it immediately, steering whatever the agent is doing - Shortcut hints — the newline legend shows only
Ctrl+Enter. Panels up to 640px wide hide the legend instead of wrapping; all keyboard bindings remain available - New line —
Ctrl+EnterorShift+Enterinserts a line break without sending. Enter used to confirm an IME candidate does not send - Queue for the next idle window —
Shift+Ctrl+Enter(or the ☰ button) hands the text to the backend’s idle gate instead: it is submitted at once if the agent is already idle, otherwise parked until the agent’s next busy→idle transition. This is the way to leave follow-up work for an agent mid-turn without interrupting it - Collapsed handle — transparent chrome and a muted label at rest; hover or keyboard focus reveals the background and border. Label and count remain fully opaque
- Queue count — the collapsed Compose button shows a muted pill for every waiting FIFO item, including commands and peer/orchestrator notices, hidden at zero. Hover or focus shows the command/message breakdown. The open panel shows
N queued; click it to inspect and remove entries, or clear the queue. Counts come from the backend (state.queued_commands), including across reloads and remote clients - Order — queued commands are typed one per idle window, in the order they were composed; a new one never overtakes one already waiting. Hands-free speech does not use this queue at all — see 9.9
- Progress replies — a queued user command can resume an idle agent waiting on a blocked progress report. Native questions and approval dialogs still block queued delivery; server notices cannot use this exception or be overtaken
- Agents only — queueing is hidden for a plain shell: its idle state says nothing about which program currently owns stdin
- Pin — the pin button docks the panel under the terminal instead of over it: the terminal shrinks and the PTY resizes, so no output hides behind the panel. A pinned panel stays open after a send or a queue and removes the sent text, so it can replace the agent’s own input box. Text typed while the send runs is kept, and a second send before the first finishes is ignored. When the terminal has no session or the send fails, a toast shows the error and the text stays.
EscandCmd+Imove the caret between the panel and the terminal instead of closing it. Per tab, not persisted - Close button — the ✕ in the status bar closes the panel and releases the pin;
Esccloses an unpinned panel
1.21 Auto-Standby (Unix)
Idle, unfocused terminals can be paused to reduce CPU and battery use. A background checker (every 30s) sends SIGSTOP only when the PTY child owns the foreground process group. An agent running as a separate foreground job inside an interactive shell is not stopped: shell job control would reclaim the terminal and leave that job suspended. Processes in the eligible child’s group are paused together.
- Entry conditions (all required) — timeout enabled (
> 0), tab not focused, shell state idle, no tracked agent background work, idle for at least the timeout, session startup settled, and not already in standby. Claude/Codex/Gemini/Grok/pi/OpenCode additionally require confirmed idle (explicit lifecycle marker or stable ready screen); silence-only idle cannot suspend them. Grok distinguishes its active Braille-spinner status row from the persistent❯composer. - Remote activity — remote input, HTTP output reads, and remote observer disconnects start a full timeout window before standby can resume; connected terminal WebSockets and SSE observers prevent standby. Recent local input also prevents standby. Desktop raw input wakes an already parked shell through the same visibility-serialized activity path.
- Wake —
SIGCONTtargets the exact recorded stopped group when the tab is focused, remote input/output arrives, or a message arrives for the agent; the process resumes where it stopped (no session loss, no restart) - Safety — the process-group id is validated before signalling; an unsafe pgid is refused rather than risking a stop sent to the wrong group
- Pause badge — suspended tabs show a pause indicator in the tab bar
- Event —
session-standby({ session_id, standby }) emitted on stop/wake - Settings — Settings > General > Power Management > Auto-Standby Timeout (default 5 min;
0disables) - Not Suspend — standby only
SIGSTOPs the process group and keeps its memory; Suspend Tab ends the process
1.21a Suspend Tab
A terminal tab can be suspended from its context menu (Suspend Tab) or with MCP session action=suspend. The PTY and its agent end, so memory and CPU are released, while the tab stays restorable exactly like a tab after a TUICommander restart.
- Kept on the tab — cwd, worktree, alias,
tuic_session, agent type, agent session id and launch command. The tab shows azzbadge and a Suspended notice with a Resume button. - Resume — the button and menu ask Rust to verify the saved agent session against its launch profile and open a replacement PTY in the same folder. A shell tab reopens its shell; the frontend attaches the returned PTY without sending another command.
- Persistence — Rust writes
suspended-sessions.jsonin the config directory before ending the PTY. Records keyed bytuic_sessionretain cwd, worktree, alias, agent type, agent session id, launch command, pane slot and reason (user, reservedidle_hibernate). A recreated frontend lists these records and renders suspended tabs without starting processes. - Refusals — working/starting agents, background work, unanswered questions, queued commands, busy shells, exited sessions and non-resumable agents remain protected by Rust checks.
- MCP verdict —
session action=suspendreturns{ok:true}after Rust persists and ends the PTY, including when no UI is attached. Refusals returnCannot suspend: <reason>. - Event —
session-suspendedcarries{record}over desktop events and SSE before the PTY closes. The IPC/HTTPsuspended_session_actionendpoint supports listing, suspending, resuming, forgetting and metadata synchronization.
2. Sidebar
- Right-click a session row to copy its PTY session ID, live PTY child PID, or exact session alias. Entries show their values on hover and confirm copies; unknown PID and absent alias entries are hidden.
Automatic repository refreshes start at least five seconds apart per repository. Event bursts retain one trailing refresh; badges can lag by five seconds plus backend read time. Explicit repository additions, branch checkouts and merge cleanup refresh the affected repository immediately, while still waiting for any active refresh to finish.
2.1 Repository List
- Add repository via
+button or folder dialog - Click repo header to expand/collapse branch list
- Click again to toggle icon-only mode (shows initials)
⋯button: Repo Settings, Switch Branch (via context menu on main worktree), Create Worktree, Move to Group, Park Repository, Remove- macOS TCC access dialog: when the OS denies access to a repository directory (e.g. Desktop, Documents), a dialog explains the issue and guides the user to grant Full Disk Access in System Settings
2.2 Repository Groups
- Named, colored groups for organizing repositories
- Create: repo
⋯→ Move to Group → New Group… - Move repo: drag onto group header, or repo
⋯→ Move to Group → select group - Remove from group: repo
⋯→ Move to Group → Ungrouped - Group context menu (right-click header): Rename, Change Color, Delete
- Collapse/expand: click group header
- Reorder groups: drag-and-drop
- Color inheritance: repo color > group color > none
2.2.1 Switch Branch
Right-click the main worktree row → Switch Branch submenu to checkout a different branch. The submenu shows all local branches with a checkmark on the current one. If the working tree is dirty, prompts to stash changes first. Blocks switching when a terminal has a running process.
2.3 Branch Items
- Click: switch to branch (shows its terminals, creates worktree if needed)
- Double-click branch name: rename branch
- Right-click context menu: Copy Path, Add Terminal, Create Worktree, Merge & Archive, Delete Worktree, Open in IDE, Rename Branch
- Worktree removal makes read-only build artifacts removable inside the checkout before Git deletes it; an unregistered directory left behind is reported with its path.
- Stale creation recovery preserves registered Git checkouts on name collisions. Force branch deletion saves an exact-tip archive ref and refuses conflicting archives.
- Background Git actions share a subcommand and per-command flag policy across desktop IPC and HTTP.
+button: click opens a terminal in that branch; long press (500 ms) lists the enabled agents and opens a tab running the chosen one (a shell row has no agents, so there a long press acts as it did before: a click, or the row menu on touch); right-click opens the row menu- CI ring: proportional arc segments (green=passed, red=failed, yellow=pending)
- PR badge: always shows
#numberplus its highest-priority state when applicable (Draft, Conflicts, CI, review, merged/closed), with state color — click for detail popover - Diff stats:
+N / -Nadditions/deletions. Clicking the stats chip or theN dirtychip selects that workspace and opens the Git panel on the Changes tab (it stays open if already there) - Merged badge: branches merged into main show a “Merged” badge
- Unmerged mark: a small neutral outlined square shows commits outside the default branch even when the diff and dirty counts are zero
- Question indicator:
?icon (orange, pulsing) when agent asks a question - Idle indicator: branch icons turn grey when the repo has no active terminals
- Quick switcher badge: numbered index shown when
Cmd+Ctrlheld - Remote-only branches with open PRs: shown in sidebar with PR badge and inline accordion actions (Checkout, Create Worktree). Additional actions when PR popover is open: Merge, View Diff, Approve, Dismiss
- Dismiss/Show Dismissed: remote-only PRs can be dismissed from the sidebar; a “Show Dismissed” toggle reveals them again
- Branch sorting: main/master/develop always first, then alphabetical; merged PR branches sorted last
2.3.1 Nested Terminal Tabs (opt-in)
- Disabled by default. Enable it via Settings → Appearance → Tabs → Nested Terminal Tabs (
tab_tree_enabled). The change applies immediately; no restart is required. - While disabled, the sidebar keeps the normal branch rows and does not render the activity card or nested agent/session rows. Missing nested agents therefore usually means this opt-in setting is still off.
- When enabled, every branch with at least one open terminal session gets an expandable activity card. Enabling the setting does not create sessions: an agent appears only after it is running in a terminal assigned to that branch.
- Agent rows show the agent icon, terminal name, current intent/task (falling back to the last substantial prompt), compact age since the backend’s last semantic session activity, and the same busy/idle signal used by the terminal tab and branch icon. Terminal redraws do not reset this age. Plain shells remain visible as terminal rows.
- A sub-agent row shows a muted robot tag with its parent agent in the tooltip; the repo GitHub badge retains the accent color to distinguish its action from session metadata.
- Clicking a row switches to that session.
- Every branch shows its agents by default; collapsing is remembered per workspace. A separate, always-visible chevron toggles the list by click or Enter/Space. The status icon and row select the branch without changing agent visibility.
- Single-session branches can expand too.
- A collapsed list shows its session count beside the chevron; an expanded list hides the count.
2.4 Git Quick Actions
- Bottom of sidebar when a repo is active
- Pull, Push, Fetch, Stash buttons — execute in active terminal
2.5 Sidebar Resize
- Drag right edge to resize (300-500px range)
- Row starts stay visible while resizing or focusing branch actions; horizontal overflow does not scroll the list
- Toggle visibility:
Cmd+[ - Width persists across sessions
2.6 Quick Branch Switcher
- Hold
Cmd+Ctrl(macOS) orCtrl+Alt(Win/Linux): show numbered overlay Cmd+Ctrl+1-9: switch to branch by index (in the Global Workspace: switch to tab N)
2.7 Park Repos
- Right-click any repo in the sidebar to park or unpark it
- Group park/unpark: right-click a group header or use the command palette to park or unpark all repos in a group at once
- Parked repos are hidden from the main repository list
- Sidebar footer button opens a popover showing all parked repos
- Unpark a repo from the popover to restore it to the main list
2.7a Sidebar Layout (compact / rich)
- Rich repository metadata hides zero PR and worktree counts; positive counts update live
- Toolbar button (left of the filter icon) cycles rich, compact and harness-only and prints the mode (R, C, H); H keeps rich rows and only branches with live harness sessions; the mode is saved in UI prefs (
sidebar_density) - Compact: one-line rows. Rich: compact-sized navigation with inline branch facts and expanded intent only for working agents. H: only branches with live harness sessions, using rich rows
- Rich branch row: PR state word and title; last-commit age, ahead/behind the upstream, diff stats, dirty-file count (opens Changes), merged, stale (no commit for 30 days), unknown (removal blocked), unmerged; never stale, merged, dirty or unknown on a main checkout. Compact carries the age, ahead/behind and stale rule on the branch name tooltip
- Rich agent row: state (working, idle, needs input, error) and the agent’s intent, task or last prompt; in-session subagents (state, title, tool calls, age; more than 3 fold into a count); TUIC child sessions nested under the parent. Compact carries state and line on the row tooltip
- Rich repo header: current branch, open PR count, worktree count, age of the last remote poll
2.8 Active-Only Filter
- Toggled from the filter icon in the toolbar (next to the sidebar collapse button); the icon turns accent-colored while engaged
- When on, the sidebar shows only repositories that have at least one open terminal — empty groups are dropped entirely (no orphaned headers)
- An accent banner at the top of the sidebar makes it unmistakable that repos are hidden, shows a
shown / totalcount, and offers “Show all” to clear the filter - If the filter hides every repo, a dedicated empty state offers “Show all”
- Session-only (not persisted across restarts)
2.9 H View (Live Harness Only)
- Toggled from the H button next to the Active-only filter icon; the button turns accent-colored while engaged
- Keeps only session rows whose harness is alive (working, idle or awaiting input); shell-only terminals and ended harness sessions are dropped
- Keeps only branches with such a session, repositories with a kept branch and groups with a kept repository; other branches of a qualifying repository are hidden. Order, indentation, icons and badges of the kept rows are unchanged
- Shares the banner, the
shown / totalcount and the “Show all” empty state with the Active-only filter; visibility follows session state live - Session-only (not persisted across restarts)
3. Panels
3.1 Panel System
- File Browser, Markdown, Diff, and Plan panels are mutually exclusive — opening one closes the others
- Ideas panel is independent (can be open alongside any of the above)
- Subtle fade transition when closing side panels (opacity + transform animation)
- All panels have drag-resize handles on their left edge (200-800px)
- Min-width constraints prevent panels from collapsing (Markdown: 300px, File Browser: 200px)
- Toggle buttons in status bar with hotkey hints visible during quick switcher
3.2 Diff Panel (Removed in 0.9.0)
Replaced by the Git Panel’s Changes tab (section 3.8). Cmd+Shift+D now opens the Git Panel
3.3 Markdown Panel (Cmd+Shift+M)
- Selective review reads: desktop and mobile send the changed current-file line ranges across saved local edits, with enclosing-section guidance; first-open reviews without local saves, external replacements, and unavailable baselines keep whole-file reading. Tweak counts and resolved-marker cleanup remain included.
- Mobile review send: send saved checkbox edits, source edits, and tweak comments from the mobile Markdown view. Choose a repository agent; the originating session is selected when available. The backend delivers at idle or queues for the next idle window and reports the outcome.
- Renders
.mdand.mdxfiles with syntax-highlighted code blocks - A Markdown document tab, including one opened through
tuic://open, can be detached from its tab context menu into a resizable window. Its tab remains in the main window; selecting it focuses the document window, and closing that window returns the document to the tab. The detached viewer rereads the file on focus and while open. - Rendered Markdown links open files and directories in TUICommander, including local symlinks and parent paths; direct UNC hrefs open with the system handler after a click and confirmation (the host is never probed), and paths that reach macOS privacy-protected home directories are not probed. Heading and
file:lineorfile:line:columntargets work without navigating the WebView; web and email links use the system handler - File list from repository’s markdown files
- Clickable file paths in terminal open
.mdfiles here - Auto-show: adding any markdown tab automatically opens the Markdown panel if it’s closed
- Header bar shows file path (or title for virtual tabs) with Edit button (pencil icon) to open in CodeEditor
Cmd+Fsearch: find text in rendered markdown with highlight navigation (shared SearchBar component)- Interactive GFM checkboxes:
- [ ],- [x], and- [~]task-list items render as clickable checkboxes. Clicking cycles through unchecked → checked → in-progress → unchecked. Changes are written back to the source.mdfile on disk. The[~]state renders as an indeterminate (half-filled) checkbox — non-standard GFM extension for tracking in-progress items - Mermaid diagrams: fenced code blocks with
```mermaidare rendered as interactive SVG diagrams. Mermaid.js is lazy-loaded on first use with dark theme - Inline review comments (tweaks): review-comment any passage of a rendered markdown file without leaving the viewer.
- Create: select text in the rendered markdown → a floating Comment button appears next to the selection → click it to open an inline popover and type the note (
Ctrl+Enterto save) - Block comments: move through the gutter left of a heading, paragraph, individual list item (including task and nested items), quote, table, or code block to highlight its exact Markdown source and reveal its comment button. List-item markers sit on an indented continuation line below the chosen item’s own content, preserving the list. Block anchors use the renderer’s raw-source ranges, so links and inline HTML do not depend on matching rendered text back to Markdown
- After each save, block ranges and highlights are refreshed from the updated source even when the visible Markdown is unchanged by the invisible comment markers. Consecutive comments remain attached to the items that were selected.
- Send to agent: the Markdown topbar lists live agents belonging to the same repository. Sending queues one file-scoped instruction through the existing agent idle gate; an idle agent receives it immediately, while a busy agent receives it at its next idle window. After a successful send, Agent and Send hide until a new tweak comment, checkbox change or saved text edit. Edits saved while a send is pending keep the controls available for another send. Failed sends keep the controls available for retry
- View / edit / delete: commented passages and blocks are highlighted; hovering one shows the comment in a tooltip, clicking it reopens the popover to edit or delete. Deleting removes the saved marker and its highlight, closes the popover, and leaves other comments intact, including comments on rendered Mermaid diagrams, even when the rendered Markdown text is unchanged
- Storage: comments live inside the
.mdsource as HTML-comment markers. Inline comments wrap their source text withtweak:begin/tweak:end; block comments use atweak:blockmarker immediately before the target block, while list-item comments use atweak:itemmarker within that item. Both forms are invisible to standard Markdown renderers, survive round-trips, and are committed with the file. The only escaped sequence is-->(→-->) - Save failures: Markdown files opened by absolute path use the external file writer. A failed comment save shows an error toast and keeps the comment popover and draft open for retry.
- LLM-friendly: the first comment added to a file prepends an invisible HTML-comment header explaining inline, block, and list-item markers, so an AI agent reading the raw file understands them without external context. Existing files with the older header remain readable and editable. The intended workflow is “human highlights + comments → agent applies the feedback to the highlighted text → agent removes the markers”
- Rendering: highlights are wrapped in the DOM after markdown parsing, so a selection that straddles inline formatting (
**bold**,`code`) stays intact and the highlight spans contiguously. Implemented inContentRenderer, whose consumers are the Markdown panel and the AI Chat transcript
- Create: select text in the rendered markdown → a floating Comment button appears next to the selection → click it to open an inline popover and type the note (
3.4 File Browser Panel (Cmd+E)
-
Bounded remote file API:
/fs/readcan return exact byte pages as base64, including files above the text editor limit. Pages are capped at 1 MiB with total size, continuation and clamp fields. Existing text reads are unchanged. -
Symbolic links: link icon, target path and target kind in tree and list views; links are followed wherever they point, also to another volume, for reads, edits, creates and deletes inside a linked directory; requested paths stay repository-relative (absolute, drive, network and above-root
..paths are refused). Delete removes only the link, including unavailable links, and failed deletes show an error notification. -
Remote file drops: native OS files dropped onto a connected remote repository are copied through its authenticated daemon connection; sources remain on the Mac. Directory copies require confirmation and existing names are skipped. Each top-level upload is limited to 256 MiB (including archive overhead) and 10,000 entries; symlinks and special files are rejected. Native destination filenames and safe executable permissions are preserved; uploads abort after 30 seconds without data.
-
Directory tree of active repository
-
Auto-refresh: nonrecursive directory watchers cover the current listing and visible expanded tree folders, including non-Git roots and nested repositories. External file and folder creation, deletion and renaming refresh the affected listing; collapsed folders reload when reopened
-
Navigation:
↑/↓(navigate),Enter(open/enter dir),Backspace(parent dir) -
Breadcrumb toolbar: always-visible path bar with click-to-navigate segments + inline sort dropdown (funnel icon)
-
Search filter: text input with
*and**glob wildcard support -
Git status indicators: orange (modified), green (staged), blue (untracked)
-
Context menu (right-click): Copy (
Cmd+C), Cut (Cmd+X), Paste (Cmd+V), Rename, Delete, Add to .gitignore -
Keyboard shortcuts work when panel is focused (copy/cut/paste)
-
Sort dropdown: Name (alphabetical, directories first) or Date (newest first, directories first)
-
Drop refresh: successful local moves, copies and remote uploads refresh expanded destination and source folders, including transfers that require confirmation.
-
View modes: tree view (default) and flat list — toggle via toolbar buttons. Tree view shows a collapsible hierarchy with lazy-loaded subdirectories on expand. Switching to tree resets to repo root. Search always uses flat results
-
Click file to open in code editor tab
3.4.1 Content Search (Cmd+Shift+F)
- Full-text search across file contents — toggle from filename search via the
Cbutton in the search bar - Options: case-sensitive, regex, whole-word
- Results stream progressively and are grouped by file with match count per file
- Each result row shows file path, line number, and highlighted match context
- Match highlighting stays aligned after Unicode text, including non-BMP emoji
- Click a result to open the file in the code editor at the matched line
- Binary files and files larger than 1 MB are automatically skipped
- Backed by
search_contentTauri command; results delivered viacontent-search-batchevents, each carrying thesearch_idof the panel that asked (the event is global and three panels listen)
3.5 Code Editor (CodeMirror 6)
- Opens in main tab area when clicking a file in file browser
- Hold
Cmd(macOS) orCtrl(Windows/Linux) while hovering to underline a link, then click to open it. HTTP(S) URLs open in the system browser; Markdown links and file paths open in TUICommander. Paths may be absolute,~/-prefixed, relative to the edited file, or relative to its repository, with an optional:line. Directories open in the File Browser; missing paths show a toast. Other modified clicks keep go-to-definition behavior. - Syntax highlighting auto-detected from extension (disabled for files > 500 KB)
- Line numbers, bracket matching, active line highlight, Tab-to-indent
- Find/Replace:
Cmd+F(find),Cmd+G/Cmd+Shift+G(next/prev),Cmd+H(replace), selection match highlighting - Save:
Cmd+S(when editor tab is focused) - Read-only toggle: padlock icon in editor header
- Line wrapping: header toggle or
Alt+Z; text-like and Markdown files start wrapped, code files start unwrapped; each kind remembers its choice - Per-tab font zoom:
Cmd+=/Cmd+-changes the active editor by 2px (8–32px);Cmd+0resets it to the configured default - Unsaved changes: dot indicator in tab bar and header
- Disk conflict detection: banner with “Reload” (discard local) or “Keep mine” options
- Auto-reloads silently when file changes on disk and editor is clean
- Undo/Redo:
Cmd+Z/Cmd+Shift+Zwith full history - Code folding: collapse/expand blocks via gutter arrows or
Cmd+Shift+[/] - Auto-close brackets: typing
(,[,{,",'inserts matching pair - Scroll past end: last line can scroll to the top of the viewport
- Block selection:
Alt+dragfor rectangular/column selection with crosshair cursor - Drop cursor: ghost cursor shown when dragging text over the editor
- Special character highlighting: invisible chars (zero-width spaces, control chars) rendered as placeholders
- CSS color preview: inline color swatches next to hex/rgb/rgba/hsl values
- Large-file support: files up to 250 MB open via a dedicated read path (
read_file_editor/MAX_EDITOR_LARGE_FILE_SIZE). Files that exceed this cap are refused up front with an informational notice instead of hanging the UI. In a browser or on the phone, the whole-file read stops at 10 MB on atuic-remotehost; the notice then offers Load in pages, which reads the file in bounded 1 MiB pages up to the same 250 MB limit and stops if the file changes on disk. Standard syntax highlighting is disabled above 500 KB, but the file still opens and is fully editable - Inline git blame (GitLens-style): a dim italic
author · relative time · summaryannotation at the end of the active line, following the cursor over already-loaded blame data (fetched on load/save/repo-revision viaget_file_blame, never per keystroke). Lines with uncommitted edits showYou · Uncommitted changes. On by default (inline_blame_enabledconfig field); no annotation for external (non-repo) files
3.6 Ideas Panel (Cmd+Alt+N)
- Quick notes / idea capture with send-to-terminal
- Agents use planner
add_idea,list_ideas, andupdate_ideathrough thestoryMCP tool,tuic story, IPC, or HTTP. Ideas keep their agent/session source and project scope innotes.json. Backend changes reload open panels throughideas-changed; stale panel saves merge by idea id and changed field, so they do not erase agent additions. Entersubmits idea,Shift+Enterinserts newline- Per-idea actions: Edit (copies back to input), Queue (agent tabs only), Send to Terminal (sends + return), Delete
- Queue leaves the idea in the agent’s Compose FIFO for its next idle window instead of typing it into the prompt now, so it never steers the running turn. The action appears only when the active tab runs a detected agent; a detached Ideas window always shows it and reports a refusal by toast.
- Mark as used: notes sent to terminal or queued are timestamped (
usedAt) for tracking - Badge count: status bar toggle shows count of notes visible for the active repo
- Per-repo filtering: notes can be tagged to a repository; untagged notes visible everywhere
- All-repositories toggle (stacked-layers button, header): shows the ideas of every repository together; in memory only. Badge and “clear completed” follow the visible list; new ideas stay tagged with the active repo
- Image paste:
Ctrl+V/Cmd+Vpastes clipboard images as thumbnails attached to the note- Images saved to
config_dir()/note-images/<note-id>/on disk - Thumbnails displayed inline below note text and in the input area before submit
- Image-only notes (no text) are supported
- Images removed from disk when the note is deleted
- Send to terminal appends absolute image paths so AI agents can read them
- Max 10 MB per image; accepted formats: PNG, JPEG, WebP, GIF
- Images saved to
- Edit preserves note identity (in-place update, no ID change)
Escapecancels edit mode- Data persisted to Rust config backend
3.7 Help Panel (Cmd+?)
- Shows app info and links (About, GitHub, Discord Community, docs)
- Keyboard shortcuts are now in the Settings > Keyboard Shortcuts page (auto-generated from
actionRegistry.ts)
3.8 Git Panel (Cmd+Shift+D)
Tabbed side panel with four tabs: Changes, Log, Stashes, Branches. Replaces the former Git Operations Panel floating overlay and the standalone Diff Panel.
Changes tab:
- Porcelain v2 working tree status via
get_working_tree_status(branch, upstream, ahead/behind, stash count, staged/unstaged/untracked files) - Sync row: Pull, Push, Fetch buttons (background execution via
run_git_command) - Stage / unstage individual files or stage all / unstage all
- Discard unstaged changes (with confirmation dialog)
- Inline commit form with message input and Amend toggle
- Click a file row to open its diff in the diff panel
- Status icons per file: Modified, Added, Deleted, Renamed, Untracked
- Per-file diff counts (additions/deletions) shown inline
- Glob filter to narrow the file list
- Path-traversal validation on all stage/unstage/discard operations
- History sub-panel (collapsible): per-file commit history via
get_file_history(follows renames), paginated with virtual scroll - Blame sub-panel (collapsible): per-line blame via
get_file_blame(porcelain format), age heatmap (green=recent, fading to neutral), commit metadata per line
Log tab:
- Paginated commit log via
get_commit_log(default 50, max 500) - Virtual scroll via
@tanstack/solid-virtualfor large histories - Canvas-based commit graph via
get_commit_graph: lane assignment, Bezier curve connections, 8-color palette, ref badges (branch, tag, HEAD). Graph follows HEAD only - Click a commit row to expand and see its full commit message body (multi-line, untruncated) and changed files (via
get_changed_files) - Click a file in an expanded commit to open its diff at that commit hash
- Relative timestamps (e.g., “3h ago”)
Stashes tab:
- List all stash entries via
get_stash_list - Per-stash actions: Apply, Pop, Drop (via
run_git_command)
Branches tab (Cmd+G — opens Git Panel directly on this tab):
- Local and Remote branches in collapsible sections
- Rich info per branch: ahead/behind counts (↑N ↓M), relative date, merged badge, stale dimming (branches with last commit > 30 days)
- Prefix folding: groups branches by
/separator (e.g.feature/,bugfix/), toggle to expand/collapse groups - Recent Branches section from git reflog
- Inline search/filter to narrow branch list
- Checkout (Enter / double-click): switches to the selected branch, with dirty worktree dialog (stash / force / cancel)
- n — Create new branch (inline form, optional checkout)
- d — Delete branch (safe + force options; refuses main branch and current branch)
- R — Rename branch (inline edit)
- M — Merge selected branch into current. Result is surfaced as a toast: conflict error on failure, “Already up to date” on a no-op, or a success toast with a one-click “Delete branch” action for the now-merged branch
- r — Rebase current onto selected branch
- P — Push branch (auto-detects missing upstream and sets tracking)
- p — Pull current branch
- f — Fetch all remotes
- Context menu (right-click): Checkout, Create Branch from Here, Delete, Rename, Merge into Current, Rebase Current onto This, Push, Pull, Fetch, Compare (shows
diff --name-status) - Delete merged: a broom button (with a count badge of how many qualify) bulk-deletes all local branches already merged into main, behind a confirm dialog listing the targets. Uses the same fresh integration proof as MCP and compares each ref with the proved tip. Content-based proofs require an archive of that tip
- MCP
repo branch_integrationsandrepo branch_integrationreport proof, tip, archive requirements and worktree paths. The branch panel and sidebar use the same backend classifier. - Backend:
get_branches_detail,get_merged_branches,delete_branch,create_branch,get_recent_branches. The list renders fromget_branches_detailfirst; merged badges arrive fromget_merged_brancheswhen the classification is done - Click on sidebar “GIT” vertical label also opens Git Panel on the Branches tab
Keyboard navigation:
Escapeto close the panelCtrl/Cmd+1–4to switch between tabs (1=Changes, 2=Log, 3=Stashes, 4=Branches)- Auto-refreshes via repo revision subscription
3.9 Quick Branch Switch (Cmd+B)
- Fuzzy-search dialog to switch branches instantly
- Shows all local and remote branches for the active repo
- Badges: current, remote, main branch indicators
- Keyboard navigation: Arrow keys, Enter to switch, Escape to close
- Remote branches auto-checkout as local tracking branch
- Fetches live branch list via
get_git_branches
3.10 Task Queue Panel (Cmd+J)
- Task management with status tracking (pending, running, completed, failed, cancelled)
- Drag-and-drop task reordering
3.11 Command Palette (Cmd+P)
- Fuzzy-search across all app actions by name
- Recency-weighted ranking: recently used actions surface first
- Each row shows action label, category badge, and keybinding hint
- Keyboard-navigable:
↑/↓to move,Enterto execute,Escto close - Browser mode mounts the same palette and exposes it through the magnifying-glass toolbar button, so it does not depend on the browser forwarding
Cmd/Ctrl+P - Browser actions are fail-closed: only commands explicitly verified against the web UI or HTTP transport are shown; native dialogs, detached windows, updater controls, MCP configuration, and user-plugin management remain omitted
- Search modes: type
!to search files by name,?to search file contents,~to search across all open terminal buffers. File/content results open in editor tab (content matches jump to the matched line). Terminal results navigate to the terminal tab/pane and scroll to the matched line. Leading spaces after prefix are ignored - Browser filename and content searches use the existing HTTP routes. Content results are correlated with a per-search random ID and republished only inside the requesting page, preventing results from leaking across windows or panels
- Discoverable search commands: “Search Terminals”, “Search Files”, “Search in File Contents” appear as regular palette commands and pre-fill the corresponding prefix
- QR for Remote Mobile Connection: opens a large black-on-white QR (in a dialog) that a phone can scan to launch the mobile companion PWA. Reuses the Settings → Remote Access connect flow (
get_connect_url— token stays server-side); shows a hint when Remote Access is disabled and a network picker for multi-IP machines. Failed local IP discovery shows a wrapped inline error and Retry without closing the dialog - Powered by
actionRegistry.ts(ACTION_METAmap)
3.12 Activity Dashboard (Cmd+Shift+A)
- Open from the status bar Agents ticker by clicking its label or counts, or focus it and press Enter or Space. The cycle badge advances tickers without opening the dashboard
- Real-time view of all active terminal sessions in a compact list
- The inline overlay stays close to the detached window’s compact width and fits narrow main windows
- An oversized saved detached Activity window opens at its compact 550×650 default after restart; smaller saved sizes remain available
- Each row shows: terminal name, repository display name badge (plus the branch for linked worktrees; folder name outside a repository), agent type, status, last activity time
- A PTY spawned by another agent (
agent action=spawn) shows the same monochrome robot-head icon in the dashboard and nested sidebar row. Its tooltip and accessible name readSpawned by <parent tab name>, resolved from either the parent’s PTY ID or live TUIC identity; an absent parent tab readsSpawned by external agent - Sub-rows (up to one shown per terminal, in priority order):
currentTask(gear icon) — current agent task from status-line parsing (e.g. “Reading files”). Suppressed for Claude Code (spinner verbs are decorative)agentIntent(crosshair icon) — LLM-declared intent viaintent:tokenlastPrompt(speech bubble icon) — last user prompt (>= 10 words). Shown only when noagentIntentis present
- Status color codes: green=working, yellow=waiting, red=rate-limited, gray=idle
- Ready input composers remain gray/idle when an agent leaves a long-lived background terminal running
- Rate limit indicators with countdown timers
- Click any row to switch to that terminal and close the dashboard. Sessions outside registered repositories open their own Global Workspace tabs; the previous repository tab keeps its session. Opening an existing session focuses its tab without creating another session.
- Relative timestamps auto-refresh (“2s ago”, “1m ago”)
3.13 Error Log Panel (Cmd+Shift+E)
- Centralized log of all errors, warnings, and info messages across the app
- Sources: App, Plugin, Git, Network, Terminal, GitHub, Dictation, Store, Config
- Level filter tabs: All, Error, Warn, Info, Debug — uses a severity threshold: selecting a level shows that level and everything more severe (e.g. Warn shows Warn + Error intermingled). Each tab has a tooltip describing what it includes
- Source filter dropdown to narrow by subsystem
- Text search across all log messages
- Each entry shows timestamp, level badge (color-coded), source tag, and message
- Copy individual entries or all visible entries to clipboard
- Clear button to flush the log
- Status bar badge shows unseen error/warning count (red, resets when panel opens)
- Global error capture: uncaught exceptions and unhandled promise rejections are automatically logged
- Ring buffer of 1000 entries (oldest dropped when full), Rust-backed — warn/error entries survive webview reloads via
push_log/get_logsTauri commands - Also accessible via Command Palette: “Error log”
3.14 Plan Detection
- Delivered by the preinstalled external Plan Tracker plugin
- Plans are detected via structured
plan-fileevents from the output parser and via aplans/directory watcher - Auto-open: restores the active plan from
.claude/active-plan.jsonon startup; new plans opened as background markdown tabs on first detection (no focus change) - Repo-scoped: only processes plans belonging to the active repository
3.15 Preview Tab
- Multi-format file previewer opened from clickable file paths, drag & drop, File Browser, or Command Palette
- File routing handled by
classifyFile()insrc/utils/filePreview.ts - Supported formats:
- HTML — rendered in sandboxed iframe with “Open in browser” button;
Cmd/Ctrl+Ffind-in-page uses the shared SearchBar pill (case/regex/whole-word toggles), which drives the iframe over a postMessage bridge and highlights matches in place - PDF — rendered via asset protocol in embedded iframe
- Images — PNG, JPG/JPEG, GIF, WebP, SVG, AVIF, ICO, BMP — rendered as
<img>via asset protocol - Video — MP4, WebM, OGG, MOV — rendered as
<video>with native controls - Audio — MP3, WAV, FLAC, AAC, M4A — rendered as
<audio>with native controls - Text / data — TXT, JSON, CSV, LOG, XML, YAML, TOML, INI, CFG, CONF — raw text in a
<pre>block
- HTML — rendered in sandboxed iframe with “Open in browser” button;
- Header bar shows shortened file path with Edit button (pencil icon — opens file in code editor) and Open externally button
- Reload: when a web or HTML-preview tab is active,
Cmd/Ctrl+R(actionreload-tab) reloads its content - File content auto-refreshes on repository revision bumps (git change detection)
- Uses Tauri’s
convertFileSrc()asset protocol for binary files,read_external_fileIPC for text content - The permissive
default-srcCSP allowsasset:andhttp://asset.localhostfor frames and media; no per-directive CSP overrides it
3.16 Focus Mode (Cmd+Alt+Enter)
- Hides sidebar, tab bar, and all side panels to maximize the active tab’s content area
- Toolbar and status bar remain visible for repo/branch state and mode exit
- Session-only (not persisted across restarts)
- Toggle again to restore the previous layout
3.17 Detachable Panels
- Any panel (AI Chat, Activity Dashboard, Git Panel, Plans and Stories) can be detached into a separate OS window
- Generic system via
open_panel_window/close_panel_windowRust commands with per-panel adapters - Two-tier sync: self-sufficient panels (Git Panel) call Rust directly; projection panels (Activity Dashboard) receive state snapshots via
emitToat 1 Hz - Shared
PanelWindowControlscomponent provides consistent detach/reattach/close buttons across all panels - Closing a detached window automatically restores the panel to the main window
- Tab bar “Detach to Window” context menu entry for per-tab detach (PTY session stays alive in Rust)
- Markdown document tabs use the same panel-window commands with a window per document; their file path is passed to the detached viewer, which reads from disk and routes linked files back to the main window.
- Generic lifecycle functions:
togglePanel(),detachPanel(),reattachPanel()replace per-panel callsites uiStore.detachedPanelsmap tracks all detached panels (replaces formeraiChatDetachedboolean)- Disk-backed panels hand over through their store, not through a live link: the detached window is opened with the params from
detachParams()and reads its own state on mount, and the main window re-reads it inonReattach()when the detached copy closes or reattaches
4. Toolbar
4.1 Sidebar Toggle
◧button (left side) — same asCmd+[- Hotkey hint visible during quick switcher
- Adjacent filter icon (shown while the sidebar is visible) toggles the “Active only” repo filter — see section 2.8
4.2 Branch Display
- Center: shows
repo / branchname - Click to open branch rename dialog
4.3 Plan File Button
- Appears when an AI agent emits a plan file path (e.g.,
PLAN.md) - Click:
.md/.mdxfiles open in Markdown panel; others open in IDE - Dismiss (×) button to hide without opening
4.4 Notification Bell
- Bell icon with count badge when notifications are available
- Click: opens popover listing all active notifications
- Empty state: shows “No notifications” when nothing is pending
- PR Updates section — types: Merged, Closed, Conflicts, CI Failed, CI Passed, Changes Requested, Ready
- Git section — background git operation results (push, pull, fetch) with success/failure status
- Worktrees section — worktree creation events (from MCP/agent)
- Messages section — agent/MCP notices and agent spawns go directly to the bell, with repository scope and an explicit Open terminal action when a session is known. Consecutive identical notices from the same origin within five seconds produce one item and one requested sound. User-action toasts are also retained when Keep toasts in the bell is enabled. Overflow from the two-card limit is retained even with that setting off; dedicated-domain toasts that explicitly opt out of Messages stay visible or queued.
- Automatic agent toast cards — MCP toast notices show a transient card only while their origin terminal tab is active. Settings → Notifications → Show cards from the active terminal defaults on and is saved per client; turning it off restores urgent-only cards. Urgent notices always show a card, and notices without an origin session remain bell-only unless urgent.
- Transient toast placement — top-right of the terminal area, offset left of a docked panel, with at most two visible cards. Same-kind notices in the same repository/session within five seconds show a ×N summary; every new member restarts its dismissal timer. Errors take a visible slot ahead of informational cards. Tall cards scroll within the upper region so their action buttons remain reachable without covering the bottom input. Clicking a card dismisses it; navigation uses its explicit action.
- Plugin activity sections — registered by plugins via activityStore
- Click PR notification: opens full PR detail popover for that branch
- Individual dismiss (×) per notification, section “Dismiss All”, auto-dismiss after 5min focused time
4.5 IDE Launcher
- The Terminals section opens a TUICommander shell tab in the active repository or worktree.
- Button with current IDE icon — click to open repo/file in IDE
- Dropdown: shows all detected installed IDEs, grouped by category
- Categories: Code Editors, JetBrains, Terminals, Git Tools, System
- JetBrains family: IntelliJ IDEA, PyCharm, WebStorm, GoLand, CLion, PhpStorm, RubyMine, Rider, DataGrip, RustRover, Android Studio, Fleet — launched via their CLI launcher (
idea,pycharm, …) with--line/--columngoto, falling back toopen -aon macOS when the Toolbox shell scripts aren’t on PATH - File-capable editors (including JetBrains IDEs) open the focused file (from editor or MD tab); others open the repo
- Custom launchers (#71): user-defined entries configured at Settings → General → Custom Launchers (name, executable on
PATHor absolute, args, per-OS platform, enable toggle), shown under a “Custom” section in the dropdown. Args support placeholder tokens resolved at launch:{path}/{file}(focused file, else repo),{repo},{fileDir}(focused file’s directory, else repo),{cwd}(focused terminal cwd, else repo),{home}, and{line}/{column}(editor cursor, default 1) - Run command button:
Cmd+Shift+R(run); edit & run has no default shortcut (actionedit-command)
5. Status Bar
5.1 Left Section
- Zoom indicator: current font size (shown when != default)
- Status info text (with pendulum ticker for overflow, pulse animation on new messages)
- CWD path: shortened with
~/, click to copy to clipboard (shows “Copied!” feedback)
5.2 Right-Aligned Status Group
- One group, in order: agent usage badge (or provider recovery), plugin tickers, Offline machines, PR/CI badges, panel controls. The cwd stays left; unused space is before the right group. Labels truncate and excess tickers rotate at narrow widths.
- Unified agent badge with priority cascade:
- Rate limit warning (highest): count + countdown timer when sessions are rate-limited
- Matching Claude or Codex Usage API ticker: live utilization from the active provider (click opens that provider’s dashboard)
- PTY usage limit: weekly/session percentage from terminal output detection
- Agent name (lowest): icon + name of detected agent
- Claude usage HTTP 429 returns an immediate rate-limited, retry HH:MM badge in host local time, with a shared per-profile two-to-five-minute cooldown and credential-free profile diagnostics. The request never sleeps through a provider retry hint or invokes a generating fallback for that throttle.
- The subscription quota registry registers Claude and Codex readers. Codex can use recorded rollout limits; active reads use non-generating usage endpoints. An expired Claude login is rejected before a request. The Claude usage dashboard no longer sends a generating fallback when the usage request fails.
- The status-bar quota display shares the registry store with the Claude and Codex dashboards. Switching between bound sessions selects cached quota, with no provider request or frontend quota interval. Mobile session details read cached Claude/Codex quota from the registry through the session usage endpoint. A Grok reader joins the registry: the Grok CLI’s ACP
_x.ai/billingrequest runs with the boundGROK_HOME(TUIC never reads the Grok token store), the current period gives the window, and a failed read waits for the registry cooldown; an expired login waits for a newgrok login. The Grok dashboard reads the same registry entry, so it no longer starts the CLI on every refresh. - The registry also registers an ego reader. It reads only ego’s
rate_limitscontract: passively from the usage report v6 that the session usage reader already runs, and actively fromego auth usage <provider> --jsonwith the boundEGO_HOME. No Claude, Codex or Grok CLI is needed. This requires an ego release withauth usage; an older ego reports the quota as unavailable. - Color coding: blue < 70%, yellow 70–95%, red pulsing >= 96%
- One placement rule (
usagePlacementinagentUsage.ts) decides where usage shows: the usage message of the active agent session goes to its badge, and the ticker area excludes the same messages. A result for another session (the previous tab during a switch) shows nowhere. An ego tab shows the usage of the subscription it is bound to, labelled by that provider; it never needs a Codex or Claude CLI login, and its badge opens no CLI dashboard (#3068-c03b) - One formatter (
formatAgentUsage) writes the badge for every provider, in a fixed order: the weekly window percent (only when the snapshot has one), then what is left before the monthly limit (a monthly window as percent left, a credit balance as an amount). Claude extra usage is a pay-as-you-go overage budget, not a limit, and is never shown. Each shown limit carries the time to its reset, for example7d: 78% -4d · 30d: 60% left -5h. The tooltip keeps the full reset date. No tool name is shown in the badge - The badge is written only when its text, label or priority changes: a same-value refresh or another account’s push causes no repaint, a switch between sessions with quota never empties it, and a stale or backoff state keeps the last good text
- The usage poll has no default provider: it stays silent until a Claude or Codex tab is focused, then follows that provider and stays on it while the active tab is a shell. A Codex-only install is therefore never shown a Claude reading (or a Claude “no token”) it did not ask for
- Codex windows are named by duration (
5h,7d) because the API does not label them, and only the account limit is rendered. A plan whose account limit reports a single window shows a single reading; per-model limits stay in the dashboard, where their model name is visible
- Shared ticker area: multi-source rotating messages from plugins with source labels, counter badge (1/3 ▸), click-to-cycle, right-click popover, and priority tiers (low/normal/urgent)
- Non-modal popups (ticker popover, status info balloon, GitHub panel, Smart Prompts dropdown) have no backdrop: wheel and clicks reach the sidebar and terminal while they are open, and an outside press dismisses them without being consumed (shared
useOutsideDismisshook) - Update badge: “Update vX.Y.Z” (click to download & install), progress percentage during download
5.3 GitHub Section (inside the right group)
- Branch badge: name + ahead/behind counts — click for branch popover
- PR badge: number + highest-priority state label and color — click for PR detail popover
- PR lifecycle filtering: CLOSED PRs hidden immediately; MERGED PRs hidden after 5 minutes of accumulated user activity
- CI badge: ring indicator — click for PR detail popover
5.3 Right Section — Panel Toggles
- Ideas (lightbulb icon) —
Cmd+Alt+N - File Browser (folder icon) —
Cmd+E - Markdown (MD icon) —
Cmd+Shift+M - Git (diff icon) —
Cmd+Shift+D(opens Git Panel) - Mobile session header: handset for two-way voice calls; composer dictation keeps its microphone.
- Mic button (when dictation enabled): hold to record, release to transcribe
6. AI Agent Support
On macOS, process detection falls back to the current kernel process name if an update unlinks a running executable. Existing foreground and composer guards still apply; unknown names do not gain agent identity.
-
Env-prefixed Claude launches — named Unix launches and resumes receive status hooks and init instructions through the same PATH shim, including
env CLAUDE_CONFIG_DIR=… claude. Explicit settings and administrative commands retain precedence. -
Independent ego advisors — the Unix shim isolates headless and redirected advisors from implicit parent UI instructions, attachments and MCP identity. Direct terminals and explicit one-launch hosted peers retain their context.
-
Pi managed status extension — opt-in native lifecycle status with paired extension-modal waits, safe marked-file installation and session-shutdown cleanup. Background tools cannot clear an open modal (#2629-9537).
-
Grok native hooks settle cancelled/failed turns and retract permission waits on matching tool outcomes, replacement prompts and turn/session end (#2624-848f).
Launch instruction editing
Settings → Agents shows read-only default and inherited launch instruction previews. Customize creates an editable global or per-agent copy. Use global restores an agent’s inheritance; Reset to default removes the global copy. Agent previews use backend resolution, marker toggles and the current TUIC version. Empty custom text disables injection. Custom text saves on blur and warns about missing markers.
Launch instruction inspector
The terminal context menu offers Inspect Launch Instructions…. Collapsible sections show the prospectively captured final launch brief, explicit system instruction arguments/file snapshots and served MCP initialize responses, with recorded source and original UTF-8 byte count. Redacted text is bounded to 32 KiB per section, 64 KiB per receipt and 16 captured sections. Queued briefs are labeled until submission succeeds. Historical launches, shell-launched agents and files the agent reads independently show Not observable by TUIC. Receipts belong to live PTY/MCP metadata, survive frontend reloads and end with the backend/session lifetime; workflow preview/hash receipts remain unchanged.
6.1 Supported Agents
| Agent | Binary | Resume Command |
|---|---|---|
| Claude Code | claude | claude --resume <uuid> (session-aware) / claude --continue (fallback) |
| Gemini CLI | gemini | gemini --resume <uuid> (session-aware) / gemini --resume (fallback) |
| OpenCode | opencode | opencode -c |
| Codex CLI | codex | codex resume <uuid> (session-aware) / codex resume --last (fallback) |
| Amp | amp | amp threads continue |
| Cursor Agent | cursor-agent | cursor-agent resume |
| Goose | goose | goose session --resume --name <uuid> (session-aware) / goose session --resume (fallback) |
| Droid (Factory) | droid | — |
| pi | pi | pi --continue |
| Git (background) | git | — |
The per-agent Prevent alternate screen setting defaults on. New TUIC shells export Claude’s environment control and, after a supported-CLI probe, the Codex/Grok --no-alt-screen and OpenCode --mini choices for manually typed commands. A timed-out help probe is cached for that binary version and its child process tree is stopped, so later launches do not repeat the delay. One Rust policy also covers menu, IPC/HTTP/MCP, worktree, and resume launches. A CLI without a verified control receives no invented option; an unexpected alternate-screen entry emits one warning per session.
6.1.1 Session-Aware Resume
When an agent is detected running in a terminal, TUICommander automatically discovers its session ID from the filesystem and stores it per-terminal (agentSessionId). On restore, this enables session-specific resume instead of generic fallback commands.
- Claude Code — Sessions stored as
~/.claude/projects/<slug>/<uuid>.jsonl; UUID from filename. Windows drive colons become dashes in the project slug (C:\Users\foo\bar→C--Users-foo-bar). - Gemini CLI — Sessions stored in
~/.gemini/tmp/<project>/chats/session-*.jsonl(legacy.jsonalso supported). Discovery and restore match the recordedprojectHashto the session project and readsessionIdfrom metadata. Discovery selects the newest unclaimed recent session; multiple tabs in the same project remain heuristic. - Codex CLI — Sessions stored in
~/.codex/sessions/YYYY/MM/DD/rollout-*-<UUID>.jsonl; UUID from filename. Codex does not partition by project, so candidates are filtered on the working directory recorded in the rollout’s firstsession_metarecord — otherwise a terminal in one project would bind to another project’s session. A rollout whosecwdcan’t be read is rejected rather than accepted - Goose turn completion — A reply followed by the ready composer returns the tab to idle and allows the next submission, without the five-minute stale recovery (#1812-022d).
- Goose — Sessions stored in SQLite (
~/Library/Application Support/Block/goose/sessions/sessions.db); shell wrapper injects--name $TUIC_SESSIONfor deterministic binding on normalsession/runlaunches, preserving explicit names, paths, resume and stateless arguments; resume by name
Discovery runs once per terminal on null→agent transition. Multiple concurrent agents are handled via a claimed_ids deduplication list. On agent exit, the stored session ID is cleared to allow re-discovery on next launch.
Every agent rejects candidates older than 5 minutes (SESSION_MAX_AGE), so a terminal opened now never resumes a session abandoned earlier in the day.
6.1.2 TUIC_SESSION Environment Variable
Every terminal tab has a stable UUID (tuicSession) injected as the TUIC_SESSION environment variable in the PTY shell. This UUID persists across app restarts and enables:
- Automatic session binding: Shell integration injects wrapper functions that transparently bind agent sessions to the current tab (zsh, bash, fish):
- Claude Code:
claude()adds--session-id $TUIC_SESSION; bypassed when--session-id,--resume, or--continueare explicit - Goose:
goose()adds--name $TUIC_SESSIONtosessionandrunsubcommands; bypassed when--name,-n,--resume, or-rare explicit - Session conflict handling: When an agent reports a session conflict (in-use or not-found), TUICommander creates a
no-session-inject.$TUIC_SESSIONflag file in the config directory. Shell wrappers check for this file and skip--session-idinjection when it exists — avoiding PTY writes that could corrupt TUI output
- Claude Code:
- Automatic resume: On restore, TUICommander verifies if the session file exists on disk (
verify_agent_session) before using--resume $TUIC_SESSION - UI spawn coherence: When spawning agents via the context menu,
TUIC_SESSIONis used as--session-idautomatically - Custom scripts:
$TUIC_SESSIONis available as a stable key for any tab-specific state
6.2 Agent Detection
- Native ego empty-composer detection can recover an unconfirmed input after a fresh stable repaint, without replaying the earlier payload. Retained text and dialogs remain blocked; later queued BG wakes use the normal idle queue flush.
- Hand-launched agents are classified and recorded by the backend on desktop and headless hosts; HTTP foreground queries share the desktop detection logic. Plain shells remain ineligible for agent submit and mail wake.
- Protocol completion survives terminal redraws and decorative idle animation; new input and recognized semantic working signals can reopen activity.
- Auto-detection from terminal output patterns
- Multi-agent status line detection via regex patterns anchored to line start: Claude Code (
*/✢/·+ task text +.../…),[Running] Taskformat, Codex CLI (•/◦bullet spinner with time suffix), Goose (<message>... (Ctrl+C to interrupt)), Copilot CLI (∴/●/○indicators), Gemini CLI (braille dots⠋⠙⠹...) - Movement-based activity: BUSY is normally latched/kept by text changing above the input area, user submission, and OSC lifecycle markers, which outrank silence. Ready prompts require a stable 1.5s observation before idle.
- A Claude mail wake submitted after a hook idle cannot leave the session Working indefinitely when the detailed transcript hides the composer: without output or a later busy hook, the indicator returns to idle after five minutes.
- Codex and Claude also use narrow semantic active markers because their current TUIs can freeze or retain an empty composer during real work. Codex scopes
Working … esc to interruptto the lowest›or»composer. Claude requires a spinner-prefixed phase with an ellipsis and parenthesized progress; completed summaries remain idle-safe, and live work can supersede a premature blocking Stop-hook completion. - Ctrl-C/Escape are interrupt intent only; status changes after the agent confirms interruption, returns to a stable prompt, emits Stop, or exits.
- Status lines rejected when they appear in diff output, code listings, or block comments
- Brand SVG logos for each agent (fallback to capital letter)
- Agent badge in status bar showing active agent
- Binary detection: Rust probes well-known directories via
resolve_cli()for reliable PATH resolution in desktop-launched apps - Foreground process detection:
tcgetpgrp()on the PTY master fd, then macOSproc_pidpath()or Linux/proc/<pid>/exewith a/proc/<pid>/commfallback to get the binary name. Identities are revoked when a shell returns to the foreground after agent observation; run-config presets remain armed during startup, and transient non-shell helpers preserve identity. Linux updater-replaced executables retain classification after removing the proc(deleted)suffix. Handles versioned binary paths (e.g. Claude Code installs as~/.local/share/claude/versions/2.1.87) by recognising the exactclaude/versions/<numeric-version>layout when the basename is not a known agent; arbitrary agent-named ancestor directories do not classify an executable; Droid is classified explicitly so it receives the agent idle threshold.
6.3 Rate Limit Detection
- Provider-specific regex patterns detect rate limit messages
- Status bar warning with countdown timer
- Per-session tracking: rate-limit events are only accepted for sessions where agent activity has been detected (prevents false warnings in plain shell sessions)
- Auto-expire: rate limits are cleared automatically after
retry_after_ms(or 120s default) without requiring agent output
6.4 Question Detection
-
OpenCode 2.2.3 private
--standalonelaunches use the native v2 plugin interface. Native form and permission waits settle by request/session ownership on answer, cancel, rejection or execution/session shutdown, without requiring another tool. The shared background service remains uninstrumented. -
ego question titles exclude preceding diagnostics and working rows. Default-mode command approvals expose native keys and preserve the refusal explanation wait.
-
Ego terminal project-trust prompts (
? [y/N]) expose mobile Yes/No controls and an Input state, including hard-wrapped project paths. -
Grok native Ask and enforced command-approval radio forms export their options, selected state and immediate numeric-answer semantics; the Ask free-text action remains waiting until submission.
-
Codex 0.162.1 native panels export their question and options. Mobile opens queued questions with Shift+Left; numeric options submit immediately. CLI-enforced command approvals also export their title and options past command metadata.
-
An open Ink selection dialog restores a missing question badge with native hooks enabled, including after a later busy hook; repeated paints do not duplicate the notification.
-
Codex
/planquestions export narrow-layout choices with separate wrapped hints and retain Input through delayed idle hooks until answered. Native counter and footer anchors remain required. -
Recognizes interactive prompts (yes/no, multiple choice, numbered options)
-
Tab dot turns orange (pulsing) when awaiting input; sidebar branch icon shows
?in orange -
Prompt overlay: keyboard navigation (↑/↓, Enter, number keys 1-9, Escape)
-
Two detection strategies run in priority order:
- Screen-based (Strategy 1): reads the live terminal screen, finds the last chat line above the prompt box (delimited by separator lines), checks if it ends with
?. Works with Claude Code, Codex (›prompt), and Gemini (>prompt) layouts - Silence-based (Strategy 2, fallback): if terminal output stops for 10s after a line ending with
?, the session is treated as awaiting input
- Screen-based (Strategy 1): reads the live terminal screen, finds the last chat line above the prompt box (delimited by separator lines), checks if it ends with
-
Stale candidate clearing: candidates that fail screen verification are purged so the same question can re-fire in a future agent cycle
-
Echo suppression: user-typed input echoed by PTY is ignored for 500ms to prevent false question detection
-
extract_question_line()scans all changed rows (not just the last) for question text, applied in both normal and headless reader threads -
Wrapped
suggest: [ … ]items remain follow-up actions even when an item contains?; they cannot set the question state. -
Question state auto-clears when a
status-lineevent fires (agent is actively working, so it’s no longer awaiting input) -
Canceling a Codex approval with Esc clears its waiting badge when the idle composer returns, while a later question remains active.
6.5 Usage Limit Detection
- Claude Code weekly and session usage percentage (from PTY output patterns)
- Color-coded badge in status bar (blue < 70%, yellow 70–95%, red pulsing >= 96%)
- Integrated into unified agent badge (see section 5.1)
6.6 Provider Usage Dashboards
- Native SolidJS component (not a plugin panel — renders as a first-class tab)
- The active Claude, Codex, or Grok badge opens its matching dashboard;
Cmd+Shift+Aopens Claude Usage - Rate Limits section: Live utilization bars from Anthropic OAuth usage API
- Follows the focused Claude terminal’s
CLAUDE_CONFIG_DIRcredential profile; an unresolved profile shows unknown rather than another account’s quota - 5-Hour, 7-Day, 7-Day Opus, 7-Day Sonnet, 7-Day Cowork buckets
- Color-coded bars: green < 70%, yellow 70-89%, red >= 90%
- Reset countdown per bucket
- Follows the focused Claude terminal’s
- Usage Over Time chart: SVG line chart of token usage over 7 days
- Input tokens (blue) and output tokens (red) stacked area
- Interactive hover crosshair with tooltip
- Insights: Session count, message totals, input/output tokens, cache stats, tokens-per-hour metric (based on real active hours from session timestamps)
- Activity heatmap: 52-week GitHub-style contribution grid
- Tooltip shows date, message count, and top 3 projects
- Model Usage table: Per-model breakdown (messages, input, output, cache)
- Projects breakdown: Per-project token usage with click to filter
- Scope selector: Filter all analytics by project slug
- Auto-refresh: API data polled every 5 minutes
- Rust data layer: Incremental JSONL parsing of
~/.claude/projects/*/transcripts- File-size-based cache (only new bytes parsed on each scan)
- Cache persisted to disk as JSON for fast restarts
- Codex dashboard: account rate-limit windows, per-model limits, reset times, plan type, credit balance, and token history from the official local Codex App Server. The Codex CLI owns OAuth and refresh; TUIC does not read its token.
- Grok dashboard: billing-period usage, subscription tier, on-demand spend,
cap, and prepaid balance from Grok Build’s official
_x.ai/billingACP extension, read through the quota registry. The short-lived connection is telemetry-only; normal Grok tabs remain PTY sessions. - Gemini: terminal rate-limit detection remains available, but there is no
account dashboard because Gemini CLI has no stable machine-readable account
quota interface. Session-local
/statsis not treated as account headroom.
Coordinator mail address
agent action=send to=orchestratorreaches the registered coordinator in the caller parent chain, or the unique role in its registered repository path, without peer discovery. Missing or ambiguous roles fail explicitly.
6.7 Intent Event Tracking
- Agents declare work phases via
intent: text (Title)tokens at the start of a row. The canvas tints intent rows and their soft-wrapped or indented hard-wrapped tails, preserving row coordinates. Blank rows and new output, answer, prompt or marker blocks end an indented tail. The token is also read when it follows the ack sentence on one row, and when the agent’s own wrapping split it across many rows; terminal width distinguishes wrapped text from adjacent indented prose, and input-box chrome is excluded. A long intent keeps its full tab-title event while the Progress journal stores a redacted, capped copy - MCP instructions request an intent on its own line, at the start of every task and on each material phase change; the terminal Context bar shows it separately from the orchestrator assignment and user prompt
- Ego uses its native status/composer pair to exclude input chrome. A second soft-wrapped intent remains visible to the parser while ego replaces that composer; historical submitted prompts do not hide it. Intent tint and state capture share one anchor grammar across agent types.
- Session snapshots restore captured intent and the last substantial prompt after reconnect, even while the agent remains idle; live state updates use the same reconciliation path.
- Intent titles may replace spawn-assigned tab labels; only an explicit user rename locks the tab title, including after reconnect
- Colorization is agent-gated (only applied in sessions with a detected agent) to prevent false positives
- Structural tokens stripped from log lines served to PWA/REST consumers via
LogLine::strip_structural_tokens() - Structured
Intentevents emitted for LLM-declared work phase tracking - Centralized debounced busy signal with completion notifications for accurate idle/active status
- One Notifications control mutes sounds and OS notices for agent-spawned sessions, using backend parentage; Activity, bell entries and urgent cards remain. Parent/user sessions are unaffected, and unparented HTTP/MCP sessions retain the completion-chime-only mute. HTTP/MCP origin survives reconnects; BUSY→IDLE and exit share one notification per busy cycle
6.8 API Error Detection
- Detects API errors (server errors, auth failures) from agent output and provider-level JSON error responses
- Claude friendly auth/transport detection excludes tool receipts and their indented diagnostic continuations
- Covers Claude Code, Codex CLI, Gemini CLI, Copilot, and raw API error JSON from providers (OpenAI, Anthropic, Google, OpenRouter, MiniMax)
- Retains final failures in the red Error state through idle and unsuccessful auto-retry; supports Claude connection-loss prose, Codex native final-error rows and ego native provider-failure notifications. Native recovery countdowns do not set Error.
- Triggers error notification sound and logs to the Error Log Panel
6.9 Agent Configuration (Settings > Agents)
-
ego permissions: Select
plan,default,edits,auto, oryoloand filesystem sandboxroorworkspace. Each choice can remain unset to use ego configuration. One backend translator applies these overrides to terminal launches, MCP spawns, and resumes, replacing matching raw flags. AI Chat over ACP uses separate settings. -
Claude and Codex receive process-scoped native status signals at launch by default (
--settings/-c notify), independently switchable per agent. Existing user overrides take precedence and no global settings are changed. -
Managed workspace trust: Claude and Codex agent-to-agent spawns accept their new working directory by default, controlled by Accept workspace trust for managed spawns for each agent. Codex receives a launch-only project trust override, including through custom launchers that forward arguments; Claude’s startup picker is answered from its own PTY after the exact question and default No, exit selection appear. Normal user-opened terminals retain each CLI’s trust behavior. No agent config file is rewritten.
-
Agent list: All supported agents with availability status and version detection
-
Run configurations: Named command templates per agent (binary, args, optional model, env vars). MCP spawn can override the model and environment per child.
-
Default config: One run config per agent marked as default for quick launching. Codex defaults carry the approvals/sandbox bypass explicitly in editable args, with a warning icon; removing the argument persists.
-
MCP bridge install: One-click install/remove of
tui-mcp-bridgeinto agent’s native MCP config file -
Supported MCP agents: Claude, Cursor, Windsurf, VS Code, Zed, Amp, Gemini, Codex, Grok, OpenCode, Droid, Goose, pi (through pi-mcp-adapter)
-
Shared settings files are opt-in: Zed, Amp and Gemini store MCP servers inside their general
settings.json, so those three are never written automatically — the panel says so and the Install button does it on request -
Remove all MCP integrations: Lists every client holding a bridge entry and clears them in one action, so uninstalling TUICommander does not leave a dangling
tuic-bridgeserver behind -
Edit agent config: Opens agent’s own configuration file in the user’s preferred IDE
-
Context menu integration: Right-click terminal > Agents submenu with per-agent run configurations; selected environment variables apply only to the launched agent, including from the sidebar menu
-
Busy detection: Agents submenu disabled when a process is already running in the active terminal
-
Environment Flags — Per-agent environment variables injected into every new terminal session. Configure in Settings > Agents > expand an agent > Environment Flags. Useful for setting feature flags like
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1without manual export.
6.10 Agent Teams
- Purpose: Enables Claude Code’s Agent Teams feature to use TUIC tabs instead of tmux panes
- Approach: Environment variable
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1injected into PTY sessions, which unlocks Claude Code’s TeamCreate/TaskCreate/SendMessage tools. Agent spawning uses direct MCP tool calls (agent spawn) instead of the deprecated it2 shim - Session lifecycle events: MCP-spawned sessions emit
session-createdandsession-closedevents so they automatically appear as tabs and clean up on exit - Settings toggle: Settings > Agents > Agent Teams
- Suggest follow-ups: Agents can propose follow-up actions via
suggest: [ A | B | C ]tokens, displayed as floating chip bar - Deprecated: The it2 shim approach (iTerm2 CLI emulation) is commented out — superseded by direct MCP tool spawning
6.11 Suggest Follow-up Actions
- Protocol: Agents emit
suggest: [ action1 | action2 | action3 ]at column 0 after completing a task. The whole token sits on one row, bounded by[ … ]with no nested brackets — so stray pipes/brackets in surrounding output (mermaid, markdown tables, prose) can never be mis-parsed as items - Answer marker: The MCP initialize instructions (Required Output Markers block) also teach every agent to prefix each sentence that directly answers the user’s question with
💬at the start of the row; the answers-only view (Cmd+Alt+R) parses it. Always sent, independent of the intent/suggest settings - Token concealment: Suggest tokens are concealed in terminal output via line erasure or space replacement — the raw token never appears on screen. Concealment is agent-gated
- Desktop: Floating chip bar (SuggestOverlay) above terminal with larger buttons and keyboard shortcut badges (
1–9to select,Escto dismiss). Auto-dismiss after 30s, on typing, or on Esc - Mobile: Horizontal scrollable pill buttons above CommandInput in SessionDetailScreen
- Action: Clicking a chip (or pressing its number key) sends the text to the PTY via
write_pty - Settings: Configurable via Settings > Agents > Show suggested follow-up actions
6.12 Slash Menu Detection
- When the user types
/in a terminal,slash_modeactivates and the output parser scans the bottom screen rows for slash command menus - Filtered menus with one result replace the previous list. When completion closes or has no matches, the backend retracts the list, including ego exact-command completion.
- Detection: 2+ consecutive rows starting with
/commandpatterns, with❯highlight for the selected item - Produces
ParsedEvent::SlashMenu { items }— used by mobile PWA to render a native bottom-sheet overlay slash_modecleared on user-input events and status-line events
6.13 Inter-Agent Messaging
- Ego interactive spawn: the built-in MCP spawn fallback sends the task as one positional argument, without the headless
runsubcommand. Explicit arguments and named run profiles keep precedence. - Claude background output: managed MCP peers default to
CLAUDE_CODE_TMPDIR=$HOME/Gits/.tmp/claude/, created before spawn; explicit inherited, run-config or caller values take precedence. - Agent-to-agent coordination when multiple agents are spawned in parallel, carried by the
agentMCP tool — there is no separatemessagingtool - Identity: Each agent uses its
$TUIC_SESSIONenv var (stable tab UUID) as its messaging identity. A headerless external caller mayregisterwithouttuic_sessionto be issued an MCP-scoped UUID, or supply a stable UUID to reclaim an existing identity - Actions:
register(announce presence, or rename/re-project an auto-bound peer),list_peers(discover other agents, optionalpathfilter),send(message a peer byto= tuic_session),inbox(poll for messages),wait(block until new mail) - Dual delivery: Real-time push via MCP
notifications/claude/channelover SSE into already working Claude Code turns; idle/completed managed agents and managed non-Claude agents use submitted PTY delivery even when their MCP bridge has an SSE stream; polling fallback viainboxis always available - Channel support: TUICommander declares
experimental.claude/channelcapability; spawned Claude Code agents automatically get--dangerously-load-development-channels server:tuicommander - Lifecycle: Peer registrations cleaned up on MCP session delete and TTL reap;
PeerRegistered/PeerUnregisteredevents broadcast via event bus for frontend visibility - Inbound webhook:
POST /agent/webhook/{to}files the raw body (max 64 KB) as mail from senderwebhookin the inbox of the peer that{to}names (id, name, PTY id or alias); an unknown recipient is refused and nothing is filed. Managed agents learn from their launch instructions that a script can call them back this way when it ends - Limits: 64 KB max message size, 100 messages per inbox (lifecycle-first eviction; peer mail back-pressure), optional path filtering for
list_peers - TUICommander acts as the messaging hub — no external daemon needed
- Durable task handles:
agent action=spawnreturnstask_idandpoll_interval_msalongsidesession_id. TheagentMCP tool polls that handle without blocking —agent action=task_getreturns{task_id, status, status_message?, result?, error_detail?, poll_interval_ms}where status isworking|input_required|completed|failed|cancelled(the last three final), andagent action=task_cancelmarks the task cancelled without killing the agent (session action=killdoes that). Use this instead ofagent action=wait/session action=waitwhen work runs past their 300 s cap or when the client may reconnect: the outcome is recorded by the session exit path whether or not anyone was listening. Tasks live for the TUICommander process only — they are deliberately not persisted, because a restart tears down every PTY
6.14 AI Chat Panel (Cmd+Alt+A) — ego over ACP
- When no ego executable is configured, AI Chat offers the detected path with Use this. Only confirmation saves it; Configure ego remains available.
AI Chat keeps the active conversation usable while saved-conversation discovery is pending or fails. Background saved-tab load failures do not replace the selected conversation’s state. New chat opens a fresh session without first replaying the saved conversation, so an old greeting title or refused replay cannot block it.
- Delete conversations — the capability-gated Conversations list confirms the named conversation, deletes its ego history and closes its tab; refusals keep the conversation (#1917).
When new content arrives while you read earlier messages, New text below appears above the composer. Select it to return to the bottom and resume following. Scrolling to the bottom also clears it; a search jump alone does not show it. Terminal Chat shares this behavior. Disable New text indicator in Settings → Appearance → Chat, or mobile Settings. The preference stays on the current client.
Start conversations with New chat tab in the tab bar. The session control bar contains no duplicate + action.
The conversation lives in ego, not in TUICommander. There is no LLM client
here: no provider, no API key, no tool loop, no sandbox. TUICommander launches
one configured ego binary and speaks ACP to it, per
plans/ego-integration/archive/plan.md section 1.
- One chat across repositories, never bound to a terminal. A turn ego runs outlives any tab and may touch files no tab is showing. Switching repository keeps the same conversations; the viewed repository is sent with each prompt. The conversation picker lists ego’s durable sessions by title and latest activity. Desktop and mobile clients connecting to one peer share one ego process, even when both connect at the same time.
- Docked on the right, resizable by its left edge (session-scoped width, not
persisted); detaches into its own window, with
DetachedPlaceholderin the main window meanwhile - The conversation view loads on first opening, including in a detached window; the desktop terminal is ready before this optional view loads
- Multiple chat tabs keep separate ACP sessions, transcripts and composer drafts
within one panel. Open tabs and the selected tab survive hide/show and detach;
closing a tab leaves its durable ego conversation available in the picker.
Selecting a saved tab attaches or replays it without sending a message, with
connecting status or a failure reason and Retry. Reopening the panel also
attaches the selected saved tab and automatically replaces a missing conversation;
other load failures remain visible. Provider retries show one live
countdown from the received delay, with cause and attempt number; zero reads
“retrying now”. Recovery or final failure clears the retry status.
Tabs use conversation titles
or prompts; model/mode controls show pending values until options arrive.
The focused panel uses
Cmd/Ctrl+Tfor a new tab (Cmd/Ctrl+Alt+Tin browser mode) andCmd/Ctrl+Wto close one (Cmd/Ctrl+Alt+Win browser mode) - Transcript text and tool output are selectable. User and assistant messages
and tool outputs have copy actions using the terminal clipboard adapter.
Message Copy includes fenced code without a separate code-block button. Web links open externally; after backend resolution, file paths use
the terminal file opener and directory paths open the file browser, including
from a detached chat. Transcript focus gives
Cmd/Ctrl+A(select this transcript),Cmd/Ctrl+F(find), andCmd/Ctrl+K(clear this tab’s view) - Streamed answers, reasoning folded into a disclosure, one collapsed tool activity line per turn with calls and outputs expandable, and the agent’s plan replaced whole each time it changes. The view follows new output while the reader is at the bottom; collapsed tool rows keep full commands in details
- The connection acknowledgement is hidden;
intent:is shown as turn status; bracketedsuggest:items on their own line or at the end of an answer become buttons that send the selected reply. A sent reply appears once even when ego echoes it in chunks. Message Copy appears on hover or keyboard focus - Session title updates rename the panel header and picker entry. The footer shows context-window use and the cumulative cost when ego reports it
- Untitled sessions show a readable prompt or activity-time label in the picker; failed and empty turns show a message in the conversation
- Image paste stages a removable preview in the composer. Sending forwards base64 image content blocks only when the agent advertises image prompts; supported PNG, JPEG, GIF and WebP files are capped at 10 MiB per turn
- The composer grows up to a bounded height. Pastes over 200 words are shown as numbered markers until Send restores the full text
Ctrl+Sin the composer parks text and image previews with a visible chip; pressing it again restores or swaps drafts. Sending an intervening prompt restores the parked draft. Mobile AI Chat uses a labelled archive icon above the input for this action.- Mobile AI Chat shares session composer styles, auto-grow, Enter/send behaviour, right-side attachment and round Send icons. Suggestions and long text wrap; wide tables scroll inside the transcript block.
- Mobile AI Chat transcript links open resolved files or directories in the Files screen, using the chat workspace as the path base.
- Permission requests are answered with one of the option ids ego published.
Small single-choice elicitations use direct answer buttons; other elicitations
are drawn as a form, and only in
formmode — the client declines every other mode before it reaches a person - While AI Chat is hidden, its status-bar toggle counts pending permissions and forms. Each new question produces one desktop notification, cleared when the question settles
- Session settings come from the options the session publishes through
set_config_option. The one-row control bar summarizes the model’s short name and mode; Pause, Resume, Compact and New use named icon buttons. A dialog labels every select option and shows its description and current choice. Errors from rejected changes appear in the dialog. TUICommander holds no model list - Pause, resume and compact are drawn only when ego advertised each extension
- A stream gap is a state, not a skip: the panel says it missed part of the
conversation and offers the one recovery there is — a fresh process replaying
the history through
session/load - Terminal right-click keeps Explain with AI and Fix this error; both write a question about the selection into the composer and open the panel
- Gated by
experimental_features_enabled(settingsStore.isAiChatEnabled, off by default) plus a configuredego_executable. While that path is empty the panel explains why it is inactive and offers Configure ego to open the ego controls in Settings → General. Provider login and the default model remain in Settings → AI Chat. Saving the executable enables chat without an app restart (detached windows refresh their settings when focused again) - Full user guide:
docs/user-guide/ai-chat.md
What went with the embedded engine (#784-0aec) and did not come back here:
| Removed | Returns as |
|---|---|
| Provider registry, models, slots, API keys in the keyring, Ollama detection | 786-4a6d — configured in ego; TUICommander stores no API key |
The ReAct agent loop, its 31 tools, SafetyChecker, FileSandbox, unsafe mode, agent model overrides, cross-session memory injection | nothing. ego runs its own loop and drives terminals from outside, through the session MCP tool family |
Terminal watchers and the cron scheduler (ai-watchers.json, ai-cron.json) | not scheduled |
| AI diff triage | nothing. #795-320b restored the review but not the triage: one unattended turn gets the whole diff, so there is no per-file classification pass to run |
| PR AI review, changelog generation, improvement scan | 795-320b — one unattended ego turn each; see 8.3 and 8.10 |
Smart Prompts api execution mode | 787-ee50 — one unattended ego turn; see 10.5 |
6.15 TUI Application Detection
- Alternate-screen tracking (
ESC[?1049h/l) and primary-screen mouse reporting classify shell versus fullscreen TUI activity. TerminalMode::FullscreenTui { app_hint, depth }remains part of session state and protects agent-session conflict handling.- The write-only command knowledge store and its background disk flush were removed in #2115-1333. Existing history files are not deleted or migrated.
- Code:
src-tauri/src/ai_agent/tui_detect.rs.
6.16 ChoicePrompt Detection
- Claude AskUserQuestion is parsed from its full-bleed Ink footer and numbered options, including rows with descriptions and imperative titles without a question mark (
Pick a colour). Itsselection_mode: navigate-entertells mobile to move the highlight with arrows and submit with Enter; the mobile screen retains the whole open dialog - New
ParsedEvent::ChoicePrompt { title, options, dismiss_key, amend_key }recognises Claude-Code-style numbered confirmation menus (footer matchesEsc to cancel · Tab to amend) - Options parsed by regex with optional cursor marker (
❯,›,>). Title heuristics require?or a verb prefix (proceed,confirm,do you want, …) to avoid matching Markdown numbered lists. Minimum two options - Destructive labels (
no,cancel,reject,abort,deny,don't) flagged for styling - Piped into
SessionState.choice_prompt; dispatched to plugins viapluginRegistry.dispatchStructuredEvent("choice-prompt", …); rendered as PWA overlay - Single-key replies routed through
sendPtyKey()(src/utils/sendCommand.ts) — nevertext + \r. Desktop listener plays a warning sound when the prompt arrives on an inactive tab
7. Git Integration
7.1 Repository Info
- Branch name, remote URL, ahead/behind counts
- Read directly from
.git/files (no subprocess for basic info) - Repo watcher: monitors
.git/index,.git/refs/,.git/HEAD,.git/MERGE_HEADfor changes
7.2 Worktrees
- MCP creation receipts and worktree inventory include the durable creator’s TUIC session identity, including ACP peers without a terminal. Legacy and unbound checkouts report
null; recycled allocations receive the new creator. - Shared story, plan, and idea stores link only when the main checkout already ignores them. Directory-only ignores also cover the new symlinks; unignored stores are skipped with a warning instead of making the worktree dirty or hiding main-checkout files.
- Auto-creation on branch select (non-main branches)
- Configurable storage strategies: sibling (
__wt), app directory, inside-repo (.worktrees/), or Claude Code default (.claude/worktrees/) - Sci-fi themed auto-generated names
- Three creation flows: dialog (with base ref dropdown), instant (auto-name), right-click branch (quick-clone with hybrid
{branch}--{random}name) - Base ref selection: choose which branch to start from when creating new worktrees
- Orphan cleanup ignores detached checkouts under OS/environment temporary roots and
~/Gits/.tmp, including symlink aliases and missing checkout registrations. Detached sidebar rows remain visible; stale removal requests are refused. - Per-repo settings: storage strategy, prompt on create, delete branch on remove, auto-archive, orphan cleanup (safe orphan countdown defaults to 10 seconds), PR merge strategy, after-merge behavior, PR visibility filters (hide drafts/conflicting/CI-failing)
- Setup script: runs once after creation (e.g.,
npm install) - Archive script: runs before an existing worktree is archived or deleted; non-zero exit blocks the operation. Cleanup of an already missing checkout skips it
- Removal previews distinguish untouched branch history from merged commits, name live sessions, and count uncommitted and untracked files. Automatic PR-close cleanup and merged-worktree archiving skip live or dirty worktrees.
- Merge & Archive: right-click → merge branch into main, then archive or delete based on setting. Conflict cleanup reports
(aborted)only whengit merge --abortsucceeds; if abort fails, the error includes the manual recovery command. - Archived worktrees remain usable Git checkouts under
__archived, including HEAD, reflogs, and initialized submodule refs; locked checkouts are left in place and archived paths are hidden from the active workspace list. - External worktree detection: monitors
.git/worktrees/for changes from CLI or other tools - Remove via sidebar
×button or context menu (with confirmation) - Warm linked worktrees: every workspace shares refs and objects with the parent. After
git worktree add, ignored directories such asnode_modules,target, and.venvare copied with clonefile/reflink when supported;.tmpand.mdkbdirectories, tracked paths, ignored files, nested repositories, and the destination ancestor are never copied- Capability is measured against the actual source/destination pair. Unsupported filesystems produce one warning and a valid cold worktree
- Read-only copied files and directories gain owner write permission in the new worktree only; symlinks are not followed
- Parent tracked and untracked changes are not carried into the new checkout
- Shared lifecycle state: sidebar, Worktree Manager, and removal confirmation render one workspace-id keyed backend verdict (
Dirty,Merged, orUnknown); sidebar Dirty/Unknown badges explain their meaning on hover or keyboard focus, and unknown blocks removal. Branch-name status diagnostics appear once; main-checkout tooltips do not describe removal - Desktop IPC, HTTP, and MCP creation payloads report
warm_artifacts.status(pendinguntil the background copy finishes) and state the linked-worktree isolation semantics; workspace path listing reports the current status. A cancelled create marks warming failed; removal and archive cancel queued copies - The Archive workspace dialog shows backend-owned file, commit and open-session checks with counts. Failed or unknown checks disable Delete; Archive keeps dirty and unmerged work.
- The Archive workspace dialog offers a red Delete alternative for a clean, integrated checkout without live sessions. Delete removes the checkout and local branch through the existing safety checks instead of recycling it; Archive remains the default.
- Removal without force keeps dirty worktrees and submodules, refuses an in-progress Git operation, and keeps a branch that changed after the removal check. Submodule commits, stash history, and reflog-only commits receive durable refs in the initialized main-checkout module repository. An uninitialized, misdirected, or deinitialized module with retained Git history stops removal, including nested modules with names different from their paths. A registered checkout whose directory is missing has an explicit lifecycle verdict and needs confirmed force to prune its registration; cleanup skips its inaccessible archive script. Dirty-file force still proves branch safety and never overrides a lock by itself
- Automatic archive keeps fresh empty-start branches, including those without a live session. Content-based integration requires a delta from the branch point; an unchanged virtual merge is not enough for an empty-start branch
- Branch deletion accepts default-branch ancestry, ancestry in the checked-out integration branch, patch equivalence, or a merged GitHub PR whose fetched head contains the local tip
- Merged-PR proof uses paginated HTTP GraphQL with the repository-bound account and host; incomplete reads remain unknown and retryable
- MCP
repo action=branch_deleteremoves an integrated local branch without a worktree after the same safety proof; it preserves remote refs and refuses checked-out, current, default, or changed local refs - Worktree Manager panel (
Cmd+Shift+Wor Command Palette → “Worktree manager”): - Dedicated overlay listing all worktrees across all repos with metadata: branch name, repo badge, PR state (open/merged/closed), dirty stats, last commit timestamp
- Dirty, merged, and unknown badges from the shared progressive refresh
- Orphan worktree detection with warning badge and Prune action; pruning refuses in-progress Git operations and detached commits absent from durable refs
- Repo filter pills and text search for branch names
- Multi-select with checkboxes and select-all for batch operations
- Batch delete and batch merge & archive
- Single-row actions: Open Terminal, Merge & Archive, Delete (disabled on main worktrees)
7.3 Auto-Fetch
- Per-repo configurable interval (5/15/30/60 minutes, default: disabled)
- Background
git fetch --allvia non-interactive subprocess - Bumps revision counter to refresh branch stats and ahead/behind counts
- Errors logged to appLogger, never blocking
- Master-tick architecture: single 1-minute timer checks all repos
7.4 Unified Repo Watcher
- Single watcher per repository monitoring the entire working tree recursively (replaces separate HEAD/index watchers)
- Uses raw
notify::RecommendedWatcherwith manual per-category trailing debounce - Event categories:
Git(HEAD, refs, index, MERGE_HEAD),WorkTree(source files),Config(app config changes) - Each category has its own debounce window — git metadata changes propagate faster than file edits
- Respects
.gitignorerules — ignored paths do not trigger refreshes - Gitignore hot-reload: editing
.gitignorerebuilds the ignore filter without restarting the watcher - When a terminal runs
git checkout -b new-branchin the main working directory (not a worktree), the sidebar renames the existing branch entry in-place (preserving all terminal state) instead of creating a duplicate
7.5 Diff
- Working tree diff and per-commit diff via Git Panel Changes tab
- Per-file diff counts (additions/deletions) shown inline in Changes tab
- Click a file row to view its diff
- Side-by-side (split), unified (inline), and scroll (all files) view modes — toggle in toolbar, preference persisted
- Scroll mode (all-files diff) — shows every changed file (staged + unstaged) in a continuous scrollable view with collapsible file sections, per-file addition/deletion stats, sticky header with totals, and clickable filenames that open in the editor. Reactively reloads on git operations via revision tracking
- Auto-unified for new/deleted files — split view is forced to unified when the diff is one-sided
- Word-level diff highlighting via
@git-diff-view/solidwith virtualized rendering - Hunk-level restore — hover a hunk header to reveal a revert button (discard for working tree, unstage for staged)
- Line-level restore — click individual addition/deletion lines to select them (shift+click for ranges), then restore only the selected lines via partial patch
- Text selection and copy enabled in diff panels (
user-select: text) Cmd+Fsearch in diff tabs via SearchBar + DomSearchEngine- Submodule entries are filtered from working tree status (not shown as regular files)
- Standalone DiffPanel removed in v0.9.0 (see section 3.2)
8. GitHub Integration
8.1 PR Monitoring
- GraphQL API (replaces
ghCLI for data fetching) - PR badge colors: green (open), purple (merged), red (closed), gray (draft)
- Merge state: Ready to merge, Checks failing, Has conflicts, Behind base, Blocked, Draft
- Review state: Approved, Changes requested, Review required
- PR lifecycle rules: CLOSED PRs hidden from sidebar and status bar; MERGED PRs shown for 5 minutes of accumulated user activity then hidden
- Auto-show PR popover filters out CLOSED and MERGED PRs (configurable in Settings > Git & GitHub > Pull Requests). The popover is non-modal: wheel scrolling over the sidebar keeps terminal keyboard focus; an outside press dismisses it and reaches the underlying control.
8.2 CI Checks
- Ring indicator with proportional segments
- Individual check names and status in PR detail popover
- Labels with GitHub-matching colors
8.3 PR Detail Popover
- Title, number, link to GitHub
- Author, timestamps, state, merge readiness, review decision
- CI check details, labels, line changes, commit count
- View Diff button: opens PR diff as a dedicated panel tab with collapsible file sections, dual line numbers, and color-coded additions/deletions
- AI Review: one unattended ego turn over the PR diff (#795-320b). Findings are listed with severity, path and line; each one with a concrete line can be
selected and posted to GitHub as an inline review comment. Findings below the confidence threshold (default
0.7,TUIC_REVIEW_CONFIDENCE_THRESHOLDoverrides) never leave the backend. TUICommander stores no API key and names no model — that is ego’s configuration. When ego is not reachable the popover shows ego’s own sentence, never an empty finding list - Merge button: visible when PR is open, approved, CI green — merges via GitHub API. Merge method auto-detected from repo-allowed methods; auto-fallback to squash on HTTP 405 rejection
- Approve button: submit an approving review via GitHub API (remote-only PRs)
- Post-merge cleanup dialog: after merge, offers checkable steps (switch to base, pull, delete local/remote branch)
- Review button: if the branch’s active agent has a run config named “review”, spawns a terminal running the interpolated command with
{pr_number},{branch},{base_branch},{repo},{pr_url}. Hidden when no matching config exists - Triggered from: sidebar PR badge, status bar PR badge, status bar CI badge, toolbar notification bell
8.4 PR Visibility Filters
- Global filters and nullable repository overrides persist across restarts; an explicit Show overrides a global Hide. Rust catalogue metadata and owner refresh cover both scopes.
- Global settings (Settings > Git & GitHub > Pull Requests): hide draft PRs, hide conflicting PRs, hide CI-failing PRs
- Per-repo overrides (Settings > [Repo] > PR Visibility): tri-state toggle per filter (Show / Default / Hide)
- Default = inherit from global setting, shown in parentheses (e.g. “Draft PRs (Show)”)
- Resolution chain: per-repo override → global setting
- TriStateToggle component: 3-position pill switch (left=hide, center=default, right=show) matching existing toggle style
8.5 Auto-Heal
- Auto-heal resolves failing checks from the exact commit over account-bound GraphQL, including external CI; check pagination and newest-rerun deduplication do not depend on the open PR count.
- When a PR on a branch with an active agent terminal becomes blocked, auto-heal hands the problem to the agent:
- CI failure — fetches failure logs and injects them with a fix prompt
- Merge conflict (
mergeable === "CONFLICTING") — injects a resolve-conflicts prompt
- Toggle per-branch via pill-switch toggle in PR detail popover (visible when CI is failing or the PR is conflicting), styled consistently with CI check item rows
- Fetches completed failed-job logs directly via the GitHub Actions jobs API and configured CircleCI jobs, including when sibling jobs keep the workflow run in progress; logs are sanitised and truncated before injection
- Waits for agent to be idle/awaiting input before injecting
- Max 3 delivered attempts per block cycle, then stops and logs a warning; log-fetch and terminal-delivery failures do not consume the budget
- Enabling while already blocked kicks off a heal immediately
- Attempt counter visible in PR detail popover
- Status tracked per-branch in
BranchState.ciAutoHeal
8.6 PR Notifications
- Types: Merged, Closed, Conflicts, CI Failed, Changes Requested, Ready
- Toolbar bell with count badge
- Individual dismiss or dismiss all
- Click to open PR detail popover
8.7 Merge PR via GitHub API
- Merge PRs directly from TUICommander without switching to GitHub web
- Configurable merge strategy per repo: merge commit, squash, or rebase (Settings > Repository > Worktree tab)
- Merge method auto-detected from repo’s allowed methods via GitHub API (
get_repo_merge_methods); auto-fallback to squash on HTTP 405 rejection. Squash is preferred first when several methods are allowed (src/utils/prMerge.ts) - Merge stays available while CI is still running:
canMergePrrequires the PR to be open, non-draft, approved, and free of definitively failed checks — pending checks do not hide the action - Triggered from: PR detail popover (local branches), remote-only PR popover, Merge & Archive workflow (sidebar context menu)
- Post-merge cleanup dialog: sequential steps executed via Rust backend (not PTY — terminal may be occupied by AI agent)
- Switch to base branch (auto-stash if dirty — inline warning shown with “Unstash after switch” checkbox)
- Pull base branch (ff-only)
- Close terminals + delete local branch (safe delete, refuses default branch)
- Delete remote branch (gracefully handles “already deleted”)
- Steps are checkable — user can toggle which to execute
- Per-step status reporting: pending → running → success/error
- After-merge behavior setting for worktrees:
archive(auto-archive),delete(remove),ask(show dialog) - When
afterMerge=ask: unified cleanup dialog includes an archive/delete worktree step (with inline selector) alongside branch cleanup steps — replaces the old 3-button MergePostActionDialog
8.8 Auto-Delete Branch on PR Close
- Per-repo setting: Off (default) / Ask / Auto
- Triggered when GitHub polling detects PR merged or closed transition
- If branch has a linked worktree, removes worktree first then deletes branch
- Safety: never deletes default/main branch; dirty worktrees always escalate to ask mode
- Removes the checkout and local branch when the shared backend verdict proves integration or finds its tip on any remote-tracking ref; the containing ref is named as proof.
- When removal would delete an unmerged branch, the error card offers Remove worktree, keep branch. The action reruns lifecycle checks and confirmation with branch deletion disabled for that removal only; the repository setting stays unchanged.
- Deduplication prevents double-firing on the same PR
8.9 GitHub Issues Panel
- Issues displayed in a collapsible section within the GitHub panel alongside PRs
- Filter modes: Assigned (default), Created, Mentioned, All, Disabled
- Filter persisted in app config (
issue_filterfield) and configurable in Settings > Git & GitHub > Issues - Each issue shows: number, title, state (OPEN/CLOSED), author, labels, assignees, milestone, comment count, timestamps
- Labels rendered with GitHub-matching colors (background opacity 0.7, contrast-aware text color)
- Issue actions: Open in GitHub, Close/Reopen, Copy issue number
- Expand accordion to see full details (milestone, assignees, labels, timestamps)
- Skeleton loading rows shown during first fetch
- Empty state message when no issues match the filter
- MCP HTTP endpoint:
GET /repo/issues?path=...returns issues JSON - MCP HTTP endpoint:
POST /repo/issues/closecloses an issue
8.10 GitHub Ops Dashboard
- Dedicated GitHub Ops dashboard tab with live columns for PR review findings, auto-fix sessions, conflict assists, improvement proposals, and CI / merge readiness.
- The review column shows Working, Done with a finding count, or ego’s own failure sentence. It deliberately never names a model: one unattended turn is all ego reports.
- Improvement scans run one unattended ego turn over local repo context with focus modes:
refactor,testing, andperf. At most five proposals survive one scan. - Proposals are notification-first: scan results emit
proposals-readyover desktop events and/eventsSSE; that event is the only path that publishes them into the store — the scan’s return value is for the caller, not for the panel. No GitHub issue is created automatically. - Each proposal can be promoted to a GitHub issue only through an explicit user action, using the existing authenticated issue creation path.
8.10a Changelog Generation
- Button in the GitHub panel header opens the Changelog modal, which runs one unattended ego turn over the merged PRs since the last tag (#795-320b).
- The result is markdown plus a structured JSON split; the modal renders the markdown and offers Copy and Save (
CHANGELOG-ai.md). HTTP and MCP callers get both halves. - Ego answering in prose only is a valid answer — the JSON half is
nulland the markdown still renders. Ego being unreachable shows ego’s own sentence, never a blank changelog.
8.11 Polling
- Active window: every 30 seconds
- Hidden window: every 2 minutes
- API budget: ~2 calls/min/repo
8.12 Token Resolution
- Priority:
GH_TOKENenv →GITHUB_TOKENenv → OAuth keyring token - Empty environment variables are ignored
- The
ghCLI login is not a token source
8.13 OAuth Device Flow Login
- One-click GitHub authentication from the Settings > Git & GitHub page
- Uses GitHub OAuth App Device Flow (no client secret, works on desktop)
- Token stored in OS keyring (macOS Keychain, Windows Credential Manager, Linux Secret Service)
- Requested scope:
repo - Shows user avatar, login name, and token source after authentication
- OAuth status exposes Logout; it removes the OAuth token and falls back to environment tokens
- Environment status exposes Switch to OAuth and Disconnect; disconnect remains in effect across status refresh and lazy requests until login or restart
- On 401: auto-clears invalid OAuth token and prompts re-auth
PR creation, issue creation, and review submission use account-aware REST requests for the bound repository, including GitHub Enterprise, without spawning gh.
8.14 Multiple Accounts (github.com + GitHub Enterprise)
GitHub integration is account-centric: TUICommander can manage N accounts and each workspace repo is explicitly bound to the account that monitors it (a persisted binding, not derived live from origin).
Account kinds
- Ambient github.com default — the account you authenticate with via the OAuth device flow above (or
GH_TOKEN/GITHUB_TOKEN). Behaves exactly as before; a github.com-only user sees zero change. - Additional github.com accounts — extra named github.com logins added via the device flow (Settings → Git & GitHub → Additional GitHub Accounts → “Add another github.com account”).
- GitHub Enterprise Server (GHE) — added by host + a pasted Personal Access Token (no per-host OAuth App). Validated against
https://{host}/api/v3/user; PAT stored in the OS keyring undergithub/account/{id}/token.
Repository bindings (Settings → Git & GitHub → Repository Bindings)
- Each workspace repo resolves to one of: Bound (shows the account + Unbind), NeedsBind (a candidate chooser — no silent
originpick when multiple GitHub remotes/accounts match), NeedsAccount (a github.com repo with no account yet → points to setup), or Unmonitored. - A single account/remote candidate resolves automatically without persisting a binding; the default-only setup hides Repository Bindings. Multiple candidates always ask, including fork/upstream repositories on one account. Worktrees of a repo share the main checkout’s binding.
Per-account isolation (hybrid model)
- github.com keeps the global breaker/viewer/rate/cooldown state byte-for-byte; each GHE account gets its own
ghe_state(circuit breaker, viewer login, rate budget). - The poller groups active repos by account and runs one batch per account, so a 401 / rate-limit / fault on one account never opens another’s breaker or blocks its polling.
- Cooldown keys are account-scoped (
{account_id}:owner/repofor GHE;owner/repounchanged for cloud); github.com logout clears only cloud cooldowns; removing an account drops only its token, record, bindings, and caches.
Limitations
- REST + GraphQL (PRs, CI, issues, merge, approve, issue comments) work against bound GHE repos. CI Auto-Heal fetches Actions logs over REST using the bound GHE account; downloads keep bounded failure tails and share one 60-second sweep deadline.
Backend: github_account.rs (GitHubHost, account model, binding store, resolve_repo_account), commands github_list_accounts / github_remove_account / github_bind_repo / github_unbind_repo / github_list_bindings / github_resolve_repo.
9. Voice Dictation
Voice settings retain the resolved speech engine when saved. Inactive external commands do not implicitly replace the selected Italian voice. Authorized isolated agent-test builds can enable speech output while microphone capture remains disabled.
The tuic-dictation Rust crate implements audio, transcription and speech; the desktop application retains the commands, browser transport and event emission.
9.1 Whisper Inference
- Local processing via
whisper-rs(no cloud) - macOS: GPU-accelerated via Metal
- Linux: GPU via Vulkan when a Vulkan driver is present, CPU otherwise
- Windows: GPU via Vulkan when a Vulkan driver is present, CPU otherwise
9.2 Models
| Model | Size | Quality |
|---|---|---|
| small | ~488 MB | Good |
| small.en | ~488 MB | Good (English-only) |
| large-v2 | ~3.0 GB | Highest accuracy (slow) |
| large-v3-turbo | ~1.6 GB | Best (recommended, default) |
9.3 Push-to-Talk
- Native macOS Fn stays recording across window focus changes while held. Physical release stops capture even when another app has focus.
- Default hotkey:
F5(configurable, registered globally) - Mic button in status bar: hold to record, release to transcribe
- On macOS, releasing Fn stops microphone capture in Rust before the WebView handles the event. A late Fn start is refused. DOM hotkeys release on blur if key-up was lost; native Fn follows physical key state. The file log records release-to-stop latency without storing spoken text.
- The destination and selection are captured at key-press time, before asynchronous work. Explicit editors take priority. In terminal Chat, Compose, transcript or BODY focus delivers to Compose through a CodeMirror transaction; Auto-send then uses its normal Send action once, while disabled Auto-send leaves an editable draft. Other fields stay review-only. CLI uses the captured PTY session with existing auto-send behavior. Focus and tab changes do not redirect the text.
- Long Claude CLI dictation uses bracketed paste to preserve its beginning, with or without Auto-send. Short dialog answers remain key events.
- If the target disappears or the draft changes before delivery, the transcript stays in a sticky error message and the Messages bell for recovery. Delivery logs contain metadata without spoken text.
9.4 Streaming Transcription
- Real-time partial results during push-to-talk via adaptive sliding windows
- First partial within ~1.5s, subsequent windows grow to 3s for quality
- Streaming skips only all-zero audio windows; the shared RMS and speech-confidence gates reject quiet/no-speech audio. A trailing pause does not discard the preceding speech.
- Floating toast shows partial text above status bar during recording, with a live microphone meter beside the partial text. The level is an RMS reading curved as
sqrt(rms * 20)and clamped to 0–1 so ordinary speech is visible rather than pinned near zero, published through an atomic so the UI never blocks audio capture - 200ms audio window overlap (
keep_ms) carries context across windows for continuity - Final transcription pass on full captured audio at key release
- Before the final pass, the hands-free 20 ms frame and sustained-duration rule rejects short bursts; push-to-talk uses the configured transcription RMS floor for frame activity so quiet sustained speech still reaches Whisper. Speech still open at key release is kept.
- A skipped final pass shows its specific speech-gate reason in the dictation status; an empty successful pass reports
no speech detected. - Hallucination filter (
transcribe.rs) as the backstop after the RMS gate: quiet audio makes Whisper emit a subtitle credit in whatever language it guessed. Short thanks (grazie,thank you,merci,danke,спасибо, …) are dropped only when they are the entire transcript, so a dictated sentence containing one survives; channel boilerplate (amara.org,sottotitoli e revisione a cura di,thanks for watching, …) is dropped anywhere in the text. Covers all 11 languages inWHISPER_LANGUAGESbecause the default setting isauto
9.5 Microphone Permission Detection (macOS)
- On first use, checks microphone permission via macOS TCC (Transparency, Consent, and Control) framework
- Permission states:
NotDetermined(will prompt),Authorized,Denied,Restricted - If denied, shows a dialog guiding the user to System Settings > Privacy & Security > Microphone with an “Open Settings” button
- Linux/Windows: always returns
Authorized(no TCC framework)
9.6 Configuration
- Enable/disable, hotkey, language (auto-detect or explicit), model download
- Audio device selection
- Text correction dictionary (e.g., “new line” →
\n) - Auto-send — Enable in Settings > Voice to automatically submit (press Enter) after transcription completes.
- Spoken-reply voice, hands-free activation phrase and hold-back delay — see 9.11.
9.7 Speech Engines and Assets
- Microsoft Edge voices are the default engine. No download; the voice list comes from the service, filtered by the dictation language, with a Listen button, and the chosen voice persists. It needs the internet and sends the reply text to Microsoft’s speech service (stated in the settings). Offline or a service error shows a clear message in the Voice section, never silence or a hang; a cancelled or over-budget reply stops promptly.
- Expert > Speech engine switches to Pocket TTS (local) or an external command. A fresh install gets Edge; an installation with a chosen Pocket voice, the Pocket runtime on disk or a configured speech command keeps that engine. Echo cancellation, hush, volume, levelling and the voice choice apply to all engines.
- The rest of this section describes the Pocket engine’s assets.
- Spoken replies need two downloads beside the Whisper models: a language bundle (ONNX graphs, tokenizer, voice — about 130 MB, French about 390 MB) and ONNX Runtime itself (42 MB). Neither ships with the app.
- Bundled languages: English, French, German, Italian, Portuguese and Spanish, each with the voice Kyutai lists as native to it (alba, estelle, juergen, giovanni, rafael, lola). French exists upstream only as the larger 24-layer model.
- The catalogue is an allowlist compiled into the binary, not a fetched manifest: every file is pinned to an immutable upstream revision and to a sha256, and a download whose bytes do not match that hash is refused instead of installed.
- Downloads report progress, can be cancelled, and install atomically — the bytes land in a staging directory, are verified there, and only then replace the installed version. An interrupted or corrupt download never appears ready.
- Three states, told apart on purpose:
absentoffers a download,incompletenames the files that are missing,readyis the only one a language can be spoken from. - Replacing or deleting a language waits for any reply being spoken to finish, then unloads its graphs. The 125 MB an engine holds resident is released on deletion and at shutdown.
- Every voice. Each language has 26 Kyutai voices. One ships in the language bundle; the other 25 are separate downloads (about 6 MB each, 25 MB for French) that the user chooses in Settings > Voice > Voices, grouped as Installed, Downloadable and Yours.
- Your own voice files. “Add voice file…” imports a
.safetensorsvoice into the current language. The file is checked against that language’s model before it is stored, and a file that does not fit is refused with the reason. TUICommander does not create or clone voices. - Listen plays a short sample of the selected voice on this machine’s speaker, without a hands-free conversation and without changing the saved voice. It is refused while a hands-free reply is being spoken.
- Sources and licensing: the graphs come from a public Hugging Face export of Kyutai’s Pocket TTS weights; the voices come from Kyutai’s ungated repository without the voice-cloning weights. Both are CC-BY-4.0, attributed in
THIRD_PARTY_NOTICES.md.
9.8 Spoken Replies
- Hands-free listening and spoken replies are independent. Settings → Voice has a toggle for each (mobile Settings too): listening only, replies only (push-to-talk dictation, answers spoken), both, or none. Existing users keep listening on. The dictation toast carries a speaker button that turns spoken replies on and off for the next reply and stops one that is playing.
- Spoken replies defaults on and can be disabled from Voice Settings or mobile Settings. Off keeps dictation armed, cancels the speech queue, and enforces text replies server-side. Edge 401/403 rejections start a five-minute cool-down across conversations.
- Arming hands-free also opens a reply queue for that conversation, so the model can answer out loud. Arming without a working voice still works — that is ordinary dictation — and the reason is reported rather than discovered on the first reply.
- The user can talk over a reply. Speaking stops the moment the capture loop hears them, and their words land in the new turn rather than behind the sentence they interrupted. Echo cancellation runs first, so a reply never interrupts itself on its own voice coming back through the microphone.
- Accepting a reply is not the user hearing it. Every reply gets an id and one of six fates:
queued,rendering,speaking,finished,interruptedorfailed. Onlyfinishedmeans somebody heard it to the end, and only the audio device going quiet can produce it. - A reply written for a turn the user has already talked over is refused, not spoken over whatever they said next.
- Every reply is at one level. A loudness stage levels each reply, brings it to the Voice volume (-30 to -12 dB, default -18) and limits the peaks to -1 dBFS, so no slider position clips. Levelling (Off to Strong, default 67%) sets how much the quiet and loud words of one reply are evened out. A change applies to the next reply and does not stop speech.
- Speech belongs to a conversation, not to the application. A model reaches it through the
voiceMCP tool and may drive only the conversation armed for its own terminal; a connection bound to no terminal is refused rather than allowed to speak into whichever conversation happens to be armed. - The
voicetool is always listed, on every build, and answersavailable: falsewith a reason when it cannot speak — discovery does not depend on tool-list change notifications, which not every client acts on.
9.9 One language, end to end
- The dictation language decides everything: what Whisper transcribes, which language the model is told to answer in, and which voice speaks the answer. There is no separate speech language and the model cannot override it.
- A spoken turn is typed into the agent at once, even while it is working — the same as a line you type by hand into a busy agent, which the agent queues or takes mid-turn itself. It never waits in the Compose queue. Only an open permission dialog or text you are typing in the terminal holds it; it stays in the hands-free panel and is typed the moment they are gone, joined with anything you said meanwhile. Held phrases are separated by line breaks inside one paste and submitted once.
- Every hands-free turn reaches the model as
<what you said> (reply in <Language>). It is part of the typed entry, so turning optional hints off does not remove it. - With Auto, the language is the one Whisper actually detected, and it is shown. Before the first turn there is none — spoken replies are unavailable and say so, rather than falling back to English.
- A language TUICommander transcribes but ships no voice for is named, never substituted: the status says which bundle is missing instead of answering in a language the user is not speaking.
- Which voice speaks is a setting; which language speaks is not. A language that ships several voices offers them in the Dictation panel; left untouched, the setting means “the first voice this language ships”. A named voice the language does not ship is refused with the list of the ones it does, rather than replaced by a voice nobody chose.
- Changing the language or the voice stops the reply written for the previous one mid-sentence — a sentence half said in one voice does not finish in another. Changing any other dictation setting leaves the voice alone.
9.10 The model is told when you start and stop talking
- Notify model when hands-free changes (on by default): arming tells the agent that messages are spoken and asks it to acknowledge aloud at once, then give a short spoken answer when done; disarming tells it to go back to text.
- Both notices are typed like a spoken turn — at once, even into a busy agent — and land in the terminal the conversation was armed for, not in whatever tab you focused since. A start notice held by a dialog goes before any spoken turn; a stop notice that meets a dialog is dropped, because the conversation it belonged to is already over.
- Change your mind before the agent reads the start notice and it is withdrawn, with no stop notice behind it. What the agent ends up holding always matches the mode you are actually in.
- Your own start notice: replace the text the agent reads at the start with your own instructions (for example a reply language or a length limit). Leave it empty, or press Reset to default, to send the built-in text. A notice written on several lines is sent as one line.
- Turning the option off silences both notices and nothing else: disarming still stops the voice, drops queued audio and refuses late replies.
- Push-to-talk is untouched. Holding the hotkey never starts continuous listening, never uses the activation phrase, never makes speech available and never notifies anyone.
9.11 Driving it from Settings > Voice
- Browser Now Playing controls identify TUICommander hands-free. Play/Pause resume or hold spoken replies without stopping the microphone; Stop ends hands-free and drops replies. Controls are released when the conversation ends.
- One titled section per job, speech-to-text and text-to-speech kept apart: Dictation (enable, hotkey, auto-send), Speech recognition (input device, Whisper model, language, voice tuning), Auto-Corrections, Hands-free conversation, Spoken replies. Each section holds its own advanced settings; there is no shared “Advanced” section.
- Spoken replies lists the speech languages and the ONNX runtime with their state, size and Download / Repair / Cancel / delete, plus the voice to speak with. There is no speech-language control — the language is the Whisper one, and a second control would be a second source that disagrees with it.
- Conversation controls — Start conversation is an accent action, Stop is distinct, and a coloured Running/Stopped indicator accompanies the backend phase.
- Early wake acknowledgement: VAD stays Listening; a recognized leading activation phrase shows Go ahead before the final Transcribing pass. Desktop and browser capture share up to four prefix checks with the existing local model. A partial match never bypasses final admission.
- Hands-free conversation picks the terminal to talk to, starts and stops the mode, and shows the live phase (waiting, capturing, wake confirmed, transcribing, holding back, delivered), the turn being held back, what is being spoken and any error. It also holds the activation phrase and the hold-back delay.
- Breath and continuation: 1.5 s of quiet closes an utterance. With an activation phrase, a turn waits at least 5 s for speech that continues without repeating the phrase; the displayed pending text grows before it reaches the agent as one message.
- Earcons — an 80 ms blip when a spoken turn reaches the agent, and a softer, lower one when the activation phrase drops a turn, so the user knows without looking. Web Audio on the desktop and in a browser alike, played only by the client whose microphone holds the conversation. Too short for the capture VAD to take as speech (
min_speech_msis 200 ms). On by default; thehands_free_earconsdictation setting turns them off. - Opening the panel never opens the microphone, and neither does starting the app. Nothing arms by itself; the mode starts only when you press Start (here or in the Command Palette) or say the activation phrase in a conversation you already armed.
9.12 Starting it from the Command Palette
- “Start hands-free conversation” / “Stop hands-free conversation” — one entry (
toggle-hands-free, category Dictation), labelled for what it will do. Starting binds the active terminal; an active tab with no live session starts nothing. Hidden on the desktop while dictation is disabled; available in browser mode, where it uses the tab’s own microphone. Cmd+Alt+V(Ctrl+Alt+Von Windows/Linux) starts or stops hands-free on the active terminal. User keybinding overrides take precedence. With desktop dictation disabled, the shortcut does nothing.- One function (
src/actions/handsFreeConversation.ts) reuses the store’s arm/disarm, so the audio owner and earcon priming are the same as in Settings. - Push-to-talk and continuous listening are two mechanisms, not a mode switch. Push-to-talk is the hotkey; continuous is Start. There is no setting that flips between them.
- The dictation hotkey is also the stop control. Pressed while a conversation is running, it ends the whole thing — capture, the transcript waiting out its hold-back or held by a dialog, and whatever is being spoken. Turns already typed stay in the terminal. Pressed otherwise it records as usual.
- Hands-free works in a browser too, on the browser’s own hardware. A tab opens its microphone and speaker and streams them to TUICommander, so a conversation started from a laptop is heard and answered there. The two sides never mix: arming from a browser cannot open the microphone on the machine running TUICommander, and arming from the desktop cannot take audio from a browser. A tab whose owner has no audio connection is refused rather than quietly served the server’s hardware, and closing the tab ends the conversation it held. The global dictation hotkey and the microphone-device list stay desktop-only — a browser cannot register a system hotkey, and that device list belongs to the other machine.
10. Prompt Library
10.1 Access
Cmd+Kto open drawer- Toolbar button
10.2 Prompts
- Create, edit, delete saved prompts
- Variable substitution:
{{variable_name}} - Built-in variables:
{{diff}},{{changed_files}},{{repo_name}},{{branch}},{{cwd}} - Custom variables prompt user for input
- Categories: Custom, Recent, Favorites
- Pin prompts to top
- Search by name or content
10.3 Keyboard Navigation
↑/↓: navigate,Enter: insert (restores terminal focus),Ctrl+N: new,Ctrl+E: edit,Ctrl+F: toggle favorite,Esc: close
10.4 Run Commands
Cmd+Shift+R: run saved command for active branchedit-command: edit command before running (no default shortcut; bind it inkeybindings.json)Cmd+R: reload the active web/preview tab- Configure per-repo in Settings → Repository → Scripts
10.5 Smart Prompts
AI automation layer with 29 built-in context-aware prompts. Each prompt includes a description explaining what it does. Prompts auto-resolve git context variables and execute via inject (PTY write), shell script (direct run), headless (one-shot subprocess), or API (direct LLM call) mode.
- Open:
Cmd+Kor toolbar lightning bolt button - Drawer with category filtering (All/Custom/Recent/Favorites), search by name/description, and enable/disable toggles
- Prompt rows show inline badges: execution mode (inject/shell/headless/api), built-in, placement tags
- Prompts are context-aware: 31 variables auto-resolved from git, GitHub, and terminal state
- Git context follows the active terminal checkout;
{base_branch}uses an explicit repository setting or Git detection for Automatic. Templates using both{branch}and{base_branch}are disabled with an explanation when refreshed checkout context shows equal branches. Cached workspace names do not veto execution; each run checks Git again. - Variable Input Dialog: unresolved variables show a compact form with variable name + description before execution
- Edit Prompt dialog: full editor with name, description, content textarea, variable insertion dropdown (grouped by Git/GitHub/Terminal with descriptions), placement checkboxes, execution mode, auto-execute, and keyboard shortcut capture
- Inject target: when a prompt is not submitted immediately, the target selects the review surface: the Compose box (default) or editable text in the Terminal
- Auto-execute: when enabled, a prompt submits exactly once through agent-aware
sendCommand, regardless of its review target. When disabled, it remains editable. Explicit Insert and Insert & Run actions override the saved setting. - API execution mode runs one unattended ego turn (#787-ee50): it used to call LLM providers directly over HTTP from TUICommander; that client, its provider registry and its keyring entry were deleted with the embedded AI engine (#784-0aec). It now goes through
acp_one_shot_prompt— launch the configured ego, onesession/newwith no MCP server, one prompt, shut down — and the turn’s final text goes to the prompt’soutputTarget. Nothing streams: a Smart Prompt runs with no panel open. Aheadlessprompt whose resolved agent isapitakes the same one path. Every permission request and elicitation is declined the instant it arrives, because a seat nobody takes is a turn that never ends; the count comes back asdeclinedso an empty answer caused by a refused tool is reported as that rather than as an empty answer. The turn is abandoned after 300s - No LLM API config: there is no global provider/model/API key in
Settings > Agentsany more, and TUICommander stores no API key. The model anapiprompt runs on is ego’s default, set inSettings > AI Chat(786-4a6d). With no ego binary named, the mode refuses and namesSettings > Generalfor the binary andSettings > AI Chatfor the model
10.6 Built-in Prompts by Category
| Category | Prompts |
|---|---|
| Git & Commit | Smart Commit, Commit & Push, Amend Commit, Generate Commit Message |
| Code Review | Review Changes, Review Staged, Review PR, Address Review Comments |
| Pull Requests | Create PR, Update PR Description, Generate PR Description |
| Merge & Conflicts | Resolve Conflicts, Merge Main Into Branch, Rebase on Main |
| CI & Quality | Fix CI Failures, Fix Lint Issues, Write Tests, Run & Fix Tests |
| Investigation | Investigate Issue, What Changed?, Summarize Branch, Explain Changes |
| Code Operations | Suggest Refactoring, Security Audit |
10.7 Context Variables
Variables are resolved from the Rust backend (resolve_context_variables) and frontend stores:
| Variable | Source | Description |
|---|---|---|
{branch} | git | Current branch name |
{base_branch} | repository settings / git | Explicit configured base branch, with Git detection for Automatic or unloaded settings |
{repo_name} | git | Repository directory name |
{repo_path} | git | Full filesystem path to the repository root |
{repo_owner} | git | GitHub owner parsed from remote URL |
{repo_slug} | git | Repository name parsed from remote URL |
{diff} | git | Full working tree diff (truncated to 50KB) |
{staged_diff} | git | Staged changes diff (truncated to 50KB) |
{changed_files} | git | Short status output |
{dirty_files_count} | git | Number of modified files (derived from changed_files) |
{commit_log} | git | Last 20 commits (oneline) |
{last_commit} | git | Last commit hash + message |
{conflict_files} | git | Files with merge conflicts |
{stash_list} | git | Stash entries |
{branch_status} | git | Ahead/behind remote tracking branch |
{remote_url} | git | Remote origin URL |
{current_user} | git | Git config user.name |
{pr_number} | GitHub store | PR number for current branch |
{pr_title} | GitHub store | PR title |
{pr_url} | GitHub store | PR URL |
{pr_state} | GitHub store | PR state (OPEN, MERGED, CLOSED) |
{pr_author} | GitHub store | PR author username |
{pr_labels} | GitHub store | PR labels (comma-separated) |
{pr_additions} | GitHub store | Lines added in PR |
{pr_deletions} | GitHub store | Lines deleted in PR |
{pr_checks} | GitHub store | CI check summary (passed/failed/pending) |
{pr_open_threads} | get_pr_open_threads | Open, current review threads as a fenced untrusted list (max 30, most severe first) |
{merge_status} | GitHub store | PR mergeable status |
{review_decision} | GitHub store | PR review decision |
{agent_type} | terminal store | Active agent type (claude, gemini, etc.) |
{cwd} | terminal store | Active terminal working directory |
{issue_number} | manual | Prompted from user at execution time |
10.8 Execution Modes
- Inject (default): routes the resolved prompt text to the active terminal. Auto-execute decides whether the action submits. Submissions are idle-gated (configurable via
requiresIdle) and use agent-aware Enter semantics. Review-only actions are not idle-gated; the Target sub-option places their editable text in the Compose box (default) or directly in the terminal input. If the Compose box is unavailable, the terminal input is the fallback. - Shell script: executes the prompt content directly as a shell script via
execute_shell_scriptTauri command. No agent involved — runs content as-is viash -c(macOS/Linux) orcmd /C(Windows) in the repo directory. Output routed viaoutputTarget. 60-second timeout cap. No prerequisites (no terminal, agent, or API config needed) - Headless: runs a one-shot subprocess via
execute_headless_promptTauri command. Requires a per-agent headless template configured in Settings → Agents (e.g.claude -p "{prompt}"). Output routed to clipboard or toast depending onoutputTarget. Falls back to inject in PWA mode. 5-minute timeout cap
10.9 UI Integration Points
| Location | Prompts shown | Trigger |
|---|---|---|
| Toolbar dropdown | All enabled prompts with toolbar placement | Cmd+Shift+K or lightning bolt button |
| Git Panel — Changes tab | SmartButtonStrip with git-changes placement | Inline buttons above changed files |
| PR Detail Popover | SmartButtonStrip with pr-popover placement | Inline buttons in PR detail view |
| Command Palette | All prompts with Smart: prefix | Cmd+P then type “Smart” |
| Branch context menu | Prompts with git-branches placement | Right-click branch in Branches tab |
10.10 Smart Prompts Management (Cmd+Shift+K Drawer)
- Settings → Smart Prompts and the Cmd+Shift+K drawer use one shared aligned editor. Settings saves changes immediately; the drawer uses explicit Save and Cancel.
- Enable/disable individual prompts via toggle button on each row
- Edit prompt: opens a modal with name, description, content, variable dropdown, eight readable placement choices, execution mode and its conditional target/agent/output fields, plus keyboard shortcut. Placement choices use two columns on the shared label/control grid.
- A normal click or Enter follows the saved auto-execute setting; double-click and Insert & Run force one submission, while Insert always keeps the result editable
- Variable insertion dropdown below content textarea: grouped by Git/GitHub/Terminal, click to insert
{variable}at cursor - Create custom smart prompts with
+ New Promptbutton - Built-in prompts show a “Reset to Default” button when content is overridden
10.11 Headless Template Configuration
- Settings → Agents → per-agent “Headless Command Template” field
- Template uses
{prompt}placeholder for the resolved prompt text - Example:
claude -p "{prompt}",gemini -p "{prompt}" - Required for headless execution mode; without it, headless prompts fall back to inject
11. Settings
Ego credential inventory uses versioned machine output. Full named-account IDs, legacy provider slots and missing local sources stay distinct. Named and orphan accounts do not generate legacy auth edit targets; malformed inventory fails without a human-text fallback.
AI Chat settings retain model controls when ego health diagnostics fail, with a non-blocking explanation and preserved credential evidence.
Malformed config fields recover independently, retaining valid preferences. A startup warning names reset fields and the original backup path. Legacy scrollback reflow is enabled once, without overriding later user choices.
The navigation groups the global pages by task. Each group is a static label row above its pages:
| Group | Pages |
|---|---|
| Application | General (11.1), Appearance (11.2), Notifications (11.5) |
| Workspace | Terminal (11.9), Keyboard Shortcuts (11.6), Git & GitHub (11.10) |
| AI | Agents (11.7), AI Chat (11.8), Voice (section 9), Smart Prompts (10.5) |
| Integrations | MCP (11.3), Remote Access (11.3), Remote Machines (11.3), Plugins (17.2) |
| Repositories | One page per configured repository (11.4) |
11.0 Search
- Search box at the top of the page list; filters every setting across every page at once
- Each result shows the setting name and its
Page › Sectiontrail; selecting one opens that page and scrolls to the field - Repository pages are not indexed — a global box cannot know which repository a query means
- Settings the current build does not render (the AI Chat page while Experimental Features is off, for example) report no match instead of opening an absent page
- A result inside an expert setting shows an Expert badge; opening it reveals that setting (see 11.11)
- The index is committed, not scanned from the DOM: only one page mounts at a time, and mounting the rest would fire CLI status, mdkb status, GitHub and audio probes on every keystroke. A drift test re-derives it from the sources, so a setting added without indexing fails CI
11.1 General
- Language: the locales that ship a message catalog, each named in its own language. The pick persists to
config.jsonand re-renders every translated string without a reload. Locales with no catalog are not listed — they would render English while claiming to be translated — so the list holds only English until more catalogs land - Show agent context bar
- Confirmations: quit, close tab (only when a process is running — agents or busy shell; idle shells close immediately)
- Power management: prevent sleep when busy, auto-standby timeout, content indexing strategy
- Updates: auto-check, update channel, check now. Beta builds migrate old saved Stable preferences to Beta once; later explicit channel choices are preserved
- TUIC CLI install/uninstall (see 21), Code Intelligence (MDKB, see 14.8)
- ego executable (ego section, after Code Intelligence): the ego binary the AI Chat panel talks to over ACP. Desktop: status line with Install latest (downloads the latest ego release binary, installs it like MDKB and selects it)/Select…/Clear; browser: a text field. Always shown, also while Experimental Features is off
- Default IDE, custom launchers (see 4.5)
- Experimental Features: one master toggle, no sub-flags. It opts in to the AI Chat panel, the AI Chat settings page (11.8) and SSH Tunnels. The three AI sub-flags went with the embedded engine (#784-0aec)
11.2 Appearance
- Split tab mode: separate / unified
- Tab ordering mode: grouped-by-type (default, tabs grouped by kind), terminals-first (terminals left, others freely interleaved), free (any tab anywhere)
- Cycle all tab types, nested terminal tabs
- Max tab name length: 10-60 slider
- Repository groups: create, rename, delete, color-coded
- Layout: reset panel sizes (restore sidebar and panel widths to defaults)
- UI legend: reference for colors, symbols and badges
11.3 MCP, Remote Access and Remote Machines
Three pages under Integrations. They were one “Services & MCP” tab; each page now mounts only its own content, and the MCP and Remote Access pages share one status poll.
- MCP — HTTP API server: always active on IPC listener (Unix domain socket on macOS/Linux, named pipe
\\.\pipe\tuicommander-mcpon Windows). TCP port only for remote access - MCP — MCP connection info: bridge sidecar auto-installs configs for supported agents (Claude Code, Cursor, etc.)
- MCP — TUIC capability switches: enable or deny capability domains and grouped actions to restrict what AI agents can access; three always-visible sections group approved domains and nested member denials, with configuration status for conditional domains; parent-blocked member switches show off with an enable-parent hint and retain their saved preferences
- MCP — Upstream MCP Servers: add/edit/remove upstream MCP servers (HTTP or stdio with optional
cwd), per-upstream enable/disable, reconnect, Bearer/OAuth and multiple masked secret header rows backed by the OS credential vault, origin-bound credentials that fail closed on provider changes or unbound old entries, same-origin-only credential redirects, live status dots, tool count and metrics. Saved upstreams auto-connect on boot. The MCP popup’s “Manage in Settings” opens this page at this section - MCP Per-Repo Scoping: each repo can define which upstream MCP servers are relevant via an allowlist in repo settings (3-layer: per-repo >
.tuic.json> defaults). Null/empty allowlist = all servers. Quick toggle via Cmd+Shift+M popup - Remote Access — port, username, password (bcrypt hash), URL display, QR code, token duration, IPv6 dual-stack, Tailscale HTTPS, cloud relay. A discovery failure replaces only the address choices with an inline error and Retry; other settings remain available
- Remote Machines —
tuic-remoteconnections over SSH or a direct URL; the page lists SSH hosts discovered from~/.ssh/configandknown_hosts(hashed entries are only counted), shows the loaded agent keys, probes hosts on demand and prefills the Add form from a click - Voice dictation has its own Voice page (section 9)
11.4 Repository Settings (per-repo)
- Display name
- Worktree tab: storage strategy, prompt on create, delete branch on remove, auto-archive, orphan cleanup, PR merge strategy, after-merge action (each overridable from global defaults)
- Scripts tab: setup script (post-worktree), run script (
Cmd+Shift+R), archive script (pre-archive/delete hook), and optional local development-server URL for Design Mode - Repo-local config:
.tuic.jsonin repo root provides team-shared settings. Three-tier precedence:.tuic.json> per-repo app settings > global defaults. Scripts (setup, run, archive) are intentionally excluded from.tuic.jsonmerging — arbitrary script execution by a checked-in file poses a security risk; scripts are always sourced from the local per-repo app settings only
11.5 Notifications
- Master toggle, volume (0-100%)
- Per-event: question, error, completed, warning, info
- Test buttons per sound
- Reset to defaults
- Keep toasts in the bell — mirrors toasts into the bell’s Messages section (see 4.4). Outside the audio block, because the bell is visual and must stay configurable without an audio device
11.6 Keyboard Shortcuts
- Settings > Keyboard Shortcuts page (
Cmd+,to open Settings), also accessible from Help > Keyboard Shortcuts (same editor) - All app actions listed with their current keybinding
- Click the pencil icon to rebind — inline key recorder with pulsing accent border
- Conflict detection: warns when the new combo is already bound to another action, with option to replace
- Overridden shortcuts highlighted with accent color; per-shortcut reset icon to revert to default
- “Reset all to defaults” button at the bottom
- Custom bindings stored in
keybindings.jsonin the platform config directory - Auto-populated from
actionRegistry.ts(ACTION_METAmap) — new actions appear automatically - Global Hotkey: configurable OS-level shortcut to toggle window visibility from any application. Set in the “Global Hotkey” section at the top of the Keyboard Shortcuts page. No default — user must configure. Toggle: hidden/minimized → show+focus, visible but unfocused → focus, focused → instant hide (no dock animation). Cmd and Ctrl are distinct modifiers. Uses
tauri-plugin-global-shortcut(no Accessibility permission required on macOS). Hidden in browser/PWA mode.
11.7 Agents
- See 6.9 Agent Configuration for full details
- Claude Usage Dashboard enable/disable toggle (under Claude agent section)
11.8 AI Chat
ego’s own configuration; the ego_executable path and the ai_chat_workspace folder (AI Chat workspace, empty = home directory, absolute paths only) are on General (11.1). Shown only while Experimental Features is on, because that flag is what offers the AI Chat panel — the one place ego is reachable from.
- Reads and writes ego’s configuration by running ego:
config ls --json,models --json,doctor --json, andconfig set model="<slug>". All three reads must succeed, so the page is never a partial picture - Default model: a picker over every model ego knows, grouped by provider, with unavailable models disabled. A write is followed by a fresh read, so what is shown is what ego persisted. It survives a restart because ego holds it, not TUICommander
- Refresh from providers:
ego models --refresh, the only action in TUICommander that reaches a provider over the network — and it is ego that reaches it. Opt-in; opening the page does not - Per-provider rows: how many models are usable, and ego’s own words for why the rest are not (once per distinct reason)
- Credential state from
ego doctor: stored, expired (ego renews it on its next run), missing, or “could not read the store” — which is deliberately not the same as an empty store - No API key enters TUICommander: none is stored, none reaches the OS keyring, and no provider HTTP call is made from this process.
ego auth login <provider>runs in a terminal tab opened by the provider’s Login button, typed as a command and answered by the person in the terminal, so the secret never passes through TUICommander modelis the only writable key, exposed as its own operation rather than a key/value pair, so no caller over IPC or HTTP can reachsandboxorpermissions.judge- Four failure states, each distinct: ego not configured (names the field to fill), a configured path that will not start, an ego command that failed (shown with the command, exit code and its verbatim output), and a transport fault that is not attributed to ego
11.9 Terminal
- Background entry hides all visible desktop windows after a forced terminal snapshot (two-second acknowledgement limit). It clears desktop focus for phone push and saves terminal visibility. Showing the app restores open panels and wakes the previous visible terminal. Remote terminal WebSockets and SSE observers prevent standby while connected.
- macOS General setting: Hide Dock icon in background (default on). Show restores the Dock icon. Windows requests a low WebView memory target while hidden and the normal target on Show.
- Theme: terminal and app color theme, color swatches. Bundled themes include Commander (default and fallback for an unknown key), Paper (key
vscode-light, the light theme), Minimal Kiwi (dark green-tinted background with muted warm accents) and Ink (keyclean; neutral dark:#0a0a0acanvas,#171717surfaces, white accent, Ghostty ANSI palette, neutral tab-type tints keyed onhtml[data-theme]). The UI usesantialiasedfont smoothing with 0.01em tracking on every theme - Shell
- Terminal font: bundled monospace fonts (JetBrains Mono default), default font size (8-32px slider), font weight, cursor style (bar / block / underline)
- Copy-on-select toggle (auto-copy selection to clipboard), OSC 52 clipboard writes, block timestamps (elapsed-time label per command block while Ctrl+Cmd is held), block folding (gates the Toggle Block Fold shortcut and its palette entry), scrollbar marks, scrollback reflow on resize
11.10 Git & GitHub
- GitHub authentication (see 8.13), additional accounts and repository bindings (see 8.14)
- Pull requests: auto-show PR popover, hide draft / conflicting / CI-failing PRs, auto-delete on PR close
- Issues: show issues, issue filter
- Repository defaults: base branch, copy ignored files, copy untracked files (two separate toggles), setup/run/archive scripts
- Worktree defaults: storage strategy, prompt on create, delete branch on remove, auto-archive, orphan cleanup, PR merge strategy, after-merge behavior, auto-fetch interval
11.11 Expert Mode
- Expert switch in the Settings header; persisted as the UI pref
settings_expert_mode(default off) - An expert setting is hidden in basic mode only while its value equals the config default. A modified value always stays visible, so an override is never hidden
- A setting the user edits stays shown until Settings is opened again, also when it is set back to the default in the same open. A value that differs only until the page loads its config is not an edit
- Defaults come from the read-only
get_config_defaultscommand (GET /config/defaults). While they are unknown, or a lookup fails, the setting stays visible - A search result for an expert setting carries an Expert badge; opening it opens the page, reveals the setting and scrolls to it. The reveal lasts until Settings is opened again and does not change the switch
- Expert settings per page: General (auto-standby timeout, content indexing, update channel); Notifications (master volume, audio output device); Terminal (shell, font weight, OSC 52 clipboard, block folding, scrollbar marks, scrollback reflow); Git & GitHub (auto-delete on PR close, copy ignored files, copy untracked files, storage strategy, auto-archive merged, orphan cleanup, after-merge behavior, auto-fetch interval, the “Add another GitHub account” button while no additional account exists); Agents (collect project progress, and per agent idle-close delay, auto-retry, native status signals, install hooks globally, track intent, collect progress, suggested follow-ups, headless command template, Claude environment flags); Voice (long-press threshold, auto-send, input device, level gate, speech confidence gate, hold-back, notify model on hands-free, start notice); MCP (collapse tools); Remote Access (port, session token duration, IPv6). Full table: Settings → Expert Mode
- Every section keeps at least one basic setting, so no heading and no page hides in basic mode
12. Persistence
12.1 Rust Config Backend
All data persisted to platform config directory via Rust:
app_config.json— general settingsnotification_config.json— sound settingsui_prefs.json— sidebar visibility/widthrepo_settings.json— per-repo worktree/script settingsrepositories.json— repository list, groups, branches (shared by debug and release builds, like every other file here)agents.json— per-agent run configurationsprompt_library.json— saved promptsnotes.json— ideas panel datadictation_config.json— dictation settings.tuic.json— repo-root team config (read-only from app, highest precedence for overridable fields)claude-usage-cache.json— incremental session transcript parse cache
12.2 Hydration Safety
save()blocks beforehydrate()completes to prevent data loss
13. Cross-Platform
13.1 Supported Platforms
- macOS (primary), Windows, Linux
13.2 Platform Adaptations
Cmd↔Ctrlkey abstractionresolve_cli(): probes well-known directories when PATH unavailable (release builds)- Windows:
cmd.exeshell escaping,CreateToolhelp32Snapshotfor process detection - IDE detection:
.appbundles (macOS), registry entries (Windows), PATH probing (Linux)
14. System Features
14.1 Auto-Update
- Check for updates on startup via
tauri-plugin-updater - Stable, Beta and Nightly channels. Beta automatically checks the next beta and final stable; beta downloads open the versioned release page, and stable updates install in-app. Fresh beta installations default to Beta; saved channel choices stay unchanged
- Status bar badge with version
- Download progress percentage
- One-click install and relaunch
- Menu: Check for Updates (app menu and Help menu)
14.2 Sleep Prevention
- With prevention disabled, an agent run lasting at least one minute shows dismissible idle-sleep guidance; short runs and plain shells do not. The guidance does not inspect battery or OS sleep policy. Dismissal persists in this client.
- Backend-owned
keepawakeassertions cover active turns, meaningful background descendants, detachedtuic bgrunners and live managed agents markedkeep_open - Sleep prevention does not depend on WebView activity; hidden, unloaded or blocked views cannot release it
- The user setting still disables inhibition; idle agents without live work and closed sessions do not retain the hold
- Configurable in Settings
14.3 Splash Screen
- Branded loading screen on app start
14.4 Confirmation Dialogs
- In-app
ConfirmDialogcomponent replaces native Tauriask()dialogs - Dark-themed to match the app (native macOS sheets render in light mode)
useConfirmDialoghook provides aconfirm()→Promise<boolean>API- Pre-built helpers:
confirmRemoveWorktree(),confirmCloseTerminal(),confirmRemoveRepo() - Keyboard support:
Enterto confirm,Escapeto cancel
14.5 Error Handling
- ErrorBoundary crash screen with recovery UI
- WebGL canvas fallback (graceful degradation)
- Error classification with backoff calculation
14.6 MCP & HTTP Server
MCP session output reports continuation instructions for retained output pages.
Text pages use scrollback positions; raw pages use source-byte positions and mask
secrets before slicing. Local HTTP and remote MCP retain the same paging contract.
Buffer eviction is reported; it does not create another output store.
- REST API on localhost for external tool integration
- Exposes terminal sessions, git operations, agent spawning
- WebSocket streaming, Streamable HTTP transport
- Used by Claude Code, Cursor, and other tools via MCP protocol
tuic-bridgeships as a Tauri sidecar; auto-installs MCP configs on first launch for Claude Code, Cursor, Windsurf, VS Code, Codex, Grok, opencode, Droid, goose and pi — but only for the ones actually installed on the machine. Zed, Amp and Gemini keep MCP inside their generalsettings.jsonand wait for an explicit install. JSON configs are edited member-by-member, never reserialized, so comments, key order and indentation survive (see MCP auto-install)- Local connections use Unix domain socket (
<config_dir>/mcp.sock) on macOS/Linux or named pipe (\\.\pipe\tuicommander-mcp) on Windows; TCP port reserved for remote access only - Unix socket lifecycle is crash-safe: RAII guard removes the socket file on
Drop; bind retries 3× (×100 ms) removing any stale file before each attempt; liveness check uses a realconnect()probe so a dead socket from a crashed run never blocks MCP tool loading
14.7 Cross-Repo Knowledge Base
- Knowledge base functionality is available via the
mdkbMCP upstream server (configure in MCP Upstreams settings) - Provides hybrid BM25 + semantic search across docs, code, symbols, and memory
- Call graph queries (calls, callers, impact analysis) via
code_graphtool - Requires
mdkbbinary on PATH (installed separately)
14.8 Code Intelligence (MDKB integration)
- Go-to-definition: Cmd+Click on symbols in the editor navigates to the definition via
mdkb_goto_definition. Holding Cmd (macOS) / Ctrl underlines the symbol under the cursor (cm-hover-link) as a click affordance; the underline clears on release or when the pointer leaves the editor, and its position is remapped through edits so it never goes stale - Find references: Shift+F12 finds all callers of a symbol via
mdkb_references(uses code_graph callers query) - Symbol outline: file-level symbol tree via
mdkb_outline(functions, types, structs) - Install/uninstall managed from Settings → General → Code Intelligence
is_available()checks binary existence on disk (not cached path) — survives external uninstalls- The daemon ping version must match the installed binary; an older detached daemon is restarted automatically after upgrades
- Homebrew-managed installs show
brew uninstall mdkbguidance instead of silent failure - Graceful fallback: all commands return empty results when mdkb is unavailable
- A daemon that goes silent cannot wedge the app: every request/response exchange is bounded (10 s), the liveness probe runs on a shorter 2 s leash, and a connection cut short by a deadline is abandoned rather than reused — a half-read stream would answer the next question with the previous reply
- The shared daemon lock is held only either side of a query, never across it, so one stalled call cannot make unrelated Code Intelligence calls wait out its deadline. Daemon startup stays exclusive on purpose, so two callers never race two spawns
14.9 macOS Dock Badge
- Badge count for attention-requiring notifications (questions, errors)
14.9 Tailscale HTTPS
- Auto-detects Tailscale daemon and FQDN via
tailscale status --json(cross-platform) - Headless daemon refreshes Tailscale Host trust every 30 seconds, recovering late startup and removing stale names after rename or stop
- Provisions TLS certificates from Tailscale Local API (Unix socket on macOS/Linux, CLI on Windows)
- HTTP+HTTPS dual-protocol on same port via
axum-server-dual-protocol - Graceful fallback: HTTP-only when Tailscale unavailable or HTTPS not enabled
- QR code uses
https://scheme with Tailscale FQDN when TLS active - Background cert renewal every 24h with hot-reload via
RustlsConfig::reload_from_pem() - Session cookie gets
Secureflag on TLS connections - Settings panel shows Tailscale status with actionable guidance
15. Keyboard Shortcut Reference
Terminal Compose starts at one control line, grows with newlines and wrapping up to 96px, and scrolls longer drafts internally. Clearing or sending restores one line.
Terminal Compose uses Enter to send, Ctrl+Enter or Shift+Enter for a new line, and Shift+Ctrl+Enter to queue. These editor-local shortcuts use the Control key on every platform and are not global keybindings.
Terminal
| Shortcut | Action |
|---|---|
Cmd+T | New terminal tab |
Cmd+W | Close tab / close active split pane |
Cmd+Shift+T | Reopen last closed tab |
Cmd+1–Cmd+9 | Switch to tab by number |
Ctrl+Tab / Ctrl+Shift+Tab | Next / previous tab |
Cmd+Ctrl+Backspace | Return to last terminal — toggles back to the previously focused terminal, switching repo/branch if needed (focus-last-terminal) |
Cmd+Alt+← / Cmd+Alt+→ | Terminal history back / forward — walks the last 10 activated terminals across repos/branches, browser-style: stepping does not reorder the history and activating another terminal drops the forward part; closed terminals leave it. When a model-driven open (ui tab, file or markdown open) moves the view to another repository, the first Back returns to the terminal that was on screen; a same-repository open adds no step. The toolbar has matching arrow buttons (disabled at the ends, tooltip names the target). The Mobile Sessions screen has a sort button (Default / Recent) next to the search lens; Recent orders by the sessions last opened on that device (history-back, history-forward) |
Cmd+U | Jump to next waiting terminal — cycles to the next terminal awaiting input (agent question/error) across all repos/branches, switching context as needed; does nothing if none are waiting (jump-waiting-terminal) |
Cmd+L | Clear terminal |
Cmd+Shift+L | Refresh terminal (fix glyphs) |
Cmd+C | Copy selection |
Cmd+V | Paste to terminal |
Cmd+Home | Scroll to top |
Cmd+End | Scroll to bottom |
Down (while scrolled back) | Scroll to bottom. The key is not sent to the terminal; at the bottom, Down goes to the program as usual |
Shift+PageUp | Scroll one page up |
Shift+PageDown | Scroll one page down |
Cmd+Shift+R | Run saved command |
Cmd+R | Reload active web/preview tab |
Cmd+Shift+. | Toggle block folding |
Cmd+Shift+Up | Jump to previous block |
Cmd+Shift+Down | Jump to next block |
Cmd+Shift+B | Toggle block-scoped search |
Zoom
| Shortcut | Action |
|---|---|
Cmd+= | Zoom in (+2px) |
Cmd+- | Zoom out (-2px) |
Cmd+0 | Reset zoom |
Cmd+Shift+= / Cmd+Shift+- | Zoom all open terminal, Markdown, and code editor tabs in / out |
Cmd+Shift+0 | Reset zoom in all open terminal, Markdown, and code editor tabs |
Split Panes
| Shortcut | Action |
|---|---|
Cmd+\ | Split vertically |
Cmd+Alt+\ | Split horizontally |
Alt+←/→ | Navigate vertical panes |
Alt+↑/↓ | Navigate horizontal panes |
Cmd+Shift+Enter | Maximize / restore active pane |
Cmd+Alt+Enter | Focus mode (hide sidebar, tab bar, panels) |
AI
| Shortcut | Action |
|---|---|
Cmd+Alt+A | Toggle AI Chat panel (toggle-ai-chat) |
Ctrl+S (AI Chat composer) | Park, restore, or swap the current prompt draft |
Cmd+Enter (panel focused) | Send message |
Esc (panel focused) | Cancel in-flight stream |
Panels
| Shortcut | Action |
|---|---|
Cmd+[ | Toggle sidebar |
Cmd+Shift+D | Toggle Git Panel |
Cmd+Shift+M | Toggle markdown panel |
Cmd+Alt+N | Toggle Ideas panel |
Cmd+E | Toggle file browser |
Cmd+O | Open file… (picker) |
Cmd+N | New file… (picker for name + location) |
Cmd+P | Command palette |
Cmd+, | Open settings |
Cmd+? | Toggle help panel |
Cmd+Shift+K | Prompt library |
Cmd+J | Task queue |
Cmd+Shift+E | Error log |
Cmd+Shift+W | Worktree manager |
Cmd+Shift+A | Activity dashboard |
Cmd+Shift+M | MCP servers popup (per-repo) |
Cmd+I | Toggle compose panel |
Cmd+Alt+L | Toggle outline panel |
Git
| Shortcut | Action |
|---|---|
Cmd+B | Quick branch switch (fuzzy search) |
Cmd+Shift+D | Git Panel (opens on last active tab) |
Cmd+G | Git Panel — Branches tab |
Branches Panel (when panel is focused)
| Shortcut | Action |
|---|---|
↑ / ↓ | Navigate branches |
Enter | Checkout selected branch |
n | Create new branch |
d | Delete branch |
R | Rename branch (inline edit) |
M | Merge selected into current |
r | Rebase current onto selected |
P | Push branch |
p | Pull current branch |
f | Fetch all remotes |
File Browser (when focused)
| Shortcut | Action |
|---|---|
↑/↓ | Navigate files |
Enter | Open file / enter directory |
Backspace | Go to parent directory |
Cmd+C | Copy file |
Cmd+X | Cut file |
Cmd+V | Paste file |
Cmd+Shift+F | Open file browser and activate content search |
Code Editor (when focused)
| Shortcut | Action |
|---|---|
Cmd+= / Cmd+- / Cmd+0 | Zoom editor text in, out, or reset |
Cmd+F | Find |
Cmd+G | Find next |
Cmd+Shift+G | Find previous |
Cmd+H | Find and replace |
Cmd+S | Save file |
Ideas Panel (when textarea focused)
| Shortcut | Action |
|---|---|
Enter | Submit idea |
Shift+Enter | Insert newline |
Cmd+V / Ctrl+V | Paste image from clipboard |
Escape | Cancel edit mode |
Quick Switcher
| Shortcut | Action |
|---|---|
Hold Cmd+Ctrl | Show quick switcher overlay |
Cmd+Ctrl+1-9 | Switch to branch by index (in the Global Workspace: switch to tab N; only the tab hints show) |
Voice Dictation
| Shortcut | Action |
|---|---|
Hold F5 | Push-to-talk (configurable) |
Mouse Actions
| Action | Where | Effect |
|---|---|---|
| Click | Sidebar branch | Switch to branch |
| Double-click | Sidebar branch name | Rename branch |
| Double-click | Tab name | Rename tab |
| Right-click | Tab | Tab context menu |
| Right-click | Sidebar branch | Branch context menu |
| Right-click | Sidebar repo ⋯ | Repo context menu |
| Right-click | Sidebar group header | Group context menu |
| Right-click | File browser entry | File context menu |
| Middle-click | Tab | Close tab |
| Drag | Tab | Reorder tabs |
| Drag | Sidebar right edge | Resize sidebar |
| Drag | Panel left edge | Resize panel |
| Drag | Split pane divider | Resize panes |
| Drag | Repo onto group | Move repo to group |
| Click | Status bar CWD path | Copy to clipboard |
| Click | PR badge (sidebar/status) | Open PR detail popover |
| Click | CI ring | Open PR detail popover |
| Click | Toolbar bell | Open notifications popover |
| Click | Status bar panel buttons | Toggle panels |
| Hold | Mic button (status bar) | Record dictation |
Recording a Custom Combo
Every shortcut above is rebindable from Help > Keyboard Shortcuts (see
docs/user-guide/keyboard-shortcuts.md).
On macOS, Ctrl+Tab and F13–F20 never reach the WebView — AppKit consumes the
first for native tab cycling and simply does not forward the rest — so a
keydown listener sees nothing. src-tauri/src/native_keys.rs installs a single
NSEvent monitor that catches both and re-emits them (ctrl-tab,
native-key-down), which is what makes F13–F20 recordable for both per-action
shortcuts and the Global Hotkey. Keys macOS itself claims before the process
(F14/F15 keyboard illumination) still need remapping in System Settings.
16. Build & Release
16.1 Makefile Targets
| Target | Description |
|---|---|
dev | Start development server |
build | Build production app |
build-dmg | Build macOS DMG |
sign | Code sign the app |
notarize | Notarize with Apple |
release | Build + sign + notarize |
build-github-release | Build for GitHub release (CI) |
publish-github-release | Publish GitHub release |
github-release | One-command release |
clean | Clean build artifacts |
16.2 CI/CD
- GitHub Actions for cross-platform builds
- macOS code signing and notarization
- Linux:
libasound2-devdependency,-fPICflags - Updater signing with dedicated keys
17. Plugin System
17.1 Architecture
- The MDKB dashboard distinguishes disabled hook telemetry from zero activity and hides retained activity metrics while telemetry is off.
- Rust-owned scoped plugin settings: typed schemas, revision-checked atomic patches, write-only secret readback, five legacy migrations, reload callbacks and unload cleanup.
- Obsidian-style plugin API with 4 capability tiers
- Built-in plugins (TypeScript, compiled with app) and external plugins (JS, loaded at runtime)
- Hot-reload: file changes in plugin directories trigger automatic re-import
- Per-plugin error logging with ring buffer (500 entries)
- Capability-gated access:
pty:write,pty:read,ui:markdown,ui:sound,ui:panel,ui:ticker,ui:context-menu,ui:sidebar,ui:file-icons,ui:file-preview,net:http,credentials:read,invoke:read_file,invoke:list_markdown_files,fs:read,fs:list,fs:watch,fs:write,fs:rename,fs:scan,fs:delete,exec:cli,git:read - CLI execution API: sandboxed execution of whitelisted CLI binaries (
mdkb) with timeout and size limits - Filesystem API: sandboxed text read, base64 binary read, write, rename, list, tail-read, and watch operations restricted to
$HOME; binary reads keep a 10 MiB default and accept a per-call budget capped at 512 MiB - HTTP API: outbound requests scoped to manifest-declared URL patterns (SSRF prevention)
- Credential API: cross-platform credential reading (macOS Keychain, Linux/Windows JSON file) with user consent
- Panel API: rich HTML panels in sandboxed iframes (
sandbox="allow-scripts allow-same-origin") with structured message bridge (onMessage/send), transferable buffer ownership, and automatic CSS theme variable injection - URL tabs support external HTTPS and localhost HTTP in sandboxed frames through the permissive
default-srcCSP. Sites can still refuse embedding through their own frame policy. - Hidden plugin and URL tab iframes unload and reload when shown again, preventing background pages from blocking terminal input on the shared WebContent main thread
- Explicit
http/https/mailtoclicks in inline plugin panels and HTML previews open outside the app; blocked navigation from cross-origin dashboard frames shows a toast directing users to the tab’s Open in Browser action - Shared ticker system:
setTicker/clearTickerAPI with source labels, priority tiers (low <10, normal 10-99, urgent >=100), counter badge, click-to-cycle, right-click popover - Agent-scoped plugins:
agentTypesmanifest field restricts output watchers and structured events to terminals running specific agents (e.g.["claude"]) - Output watchers match in Rust on the PTY reader thread: the frontend pushes its pattern set (
set_plugin_output_watchers), Rust assembles and cleans the lines, and the WebView is only woken for a line that matched. Rust is the only line assembler, so a watcher that registers mid-line still sees that line whole. A pattern the Rustregexcrate cannot express (lookaround, backreferences) is reported back and keeps matching in the WebView, which then receives every line - Watcher sets are per client (max 8): a desktop window and a browser tab keep independent sets, and browser/PWA clients receive watcher matches as well
- Plugin manifest fields use camelCase (
minAppVersion,agentTypes,contentUri) — matches Rust serde serialization
17.2 Plugin Management (Settings > Plugins)
- Installed tab: List all plugins with enable/disable toggle, logs viewer, uninstall button
- Browse tab: Discover plugins from the community registry with one-click install/update
- Enable/Disable: Persisted in
AppConfig.disabled_plugin_ids - ZIP Installation: Install from local
.zipfile or HTTPS URL - Folder Installation: Install from a local folder (copies plugin directory into plugins dir)
- Uninstall: Removes plugin directory (confirmation required)
17.3 Plugin Registry
- Remote JSON registry hosted on GitHub (
tuicommander-pluginsrepo) - Fetched on demand with 1-hour TTL cache
- Version comparison for “Update available” detection
- Install/update via download URL
docx-previewplugin: previews Word.docx/.dotxfiles as clean HTML using Mammoth.jsxlsx-previewplugin: previews Excel.xlsx/.xlsm/.xlsb/.xlsand OpenDocument.odsspreadsheets as sortable per-sheet tables using SheetJSsqlite-viewerplugin: opens.db,.sqlite,.sqlite3,.db3, and.s3dbfiles in a self-contained sql.js/WebAssembly viewer with schema and index browsing, per-column filters, sorting, native pagination, bounded read-only queries, visual query plans, CSV copy, and explicit atomic inline-edit saves for primary-key tables
17.4 Deep Links (tuic://)
tuic://install-plugin?url=https://...— Download and install plugin (HTTPS, or plain HTTP fromlocalhost/loopback; confirmation dialog)- CLI
tuic <dir>/tuic open <dir>and MCPrepo action=addregister and activate directories through the running server, without an OS URL handler; repeat adds preserve existing workspaces and terminals. MCPui tabrejectstuic://open-repoand directs callers torepo add. tuic://open-repo?path=/path— Activate a repo already in the sidebar; a folder that is not in it yet is added after one confirmation (native deep-link flow)tuic://settings?tab=plugins— Open Settings to specific tab- Markdown document links using
tuic://open/<path>open Markdown in a document tab, images and HTML in a preview, and directories in the file browser. Desktop and mobile/browser views support absolute paths across repositories and worktrees. Local desktop and loopback browser clients can open unregistered local files; network external-text reads retain their registered-repository boundary and HTTP authentication. tuic://open/<path>— Open a Markdown file in a native tab. MCPui action=tabalso accepts absolute Markdown paths outside registered repositories; the iframe SDK keeps its repository path validation.- Absolute file URLs use
tuic://open//Users/name/file.mdortuic://edit//home/name/file.rs. Redundant leading slashes normalize to one filesystem root before tab creation, including iframe SDK and mobile output links; relative paths and Windows drive paths keep their existing meaning. - Focused absolute
tuic://open/tuic://edittargets switch to their owning registered repository so the native file tab remains visible; background opens preserve the current repository - MCP
ui action=tabtabs, including external native files and HTML/URL previews, bind to the calling session’s registered repository when known. Focused opens switch there so the tab stays reachable; background opens preserve the current view. Unpinned tabs hide in other repositories and return when their repository is selected; pinned tabs remain visible across repositories. - Native MCP file tabs use the supplied
idfor identity: different ids remain separate even when they target the same path, and repeating an id updates that tab. Tabs remain visible when another terminal is selected in the same repository, including before a workspace is chosen. tuic://terminal?repo=<path>— Open terminal in repo (iframe SDK only)tuic://cmd/{tool}/{action}?{params}— MCP gateway for external automation (scripts, Shortcuts, browser pages). Routes to the same tool/action handlers as the MCP server. Gating is default-deny:- Read-only / notify actions (e.g.
session/list,session/status,repo/list,agent/inbox,ui/toast) run silently without a dialog - Destructive or unknown actions (anything not in the safe list) require a confirmation dialog before executing — prevents a malicious page from acting unattended
config/saveanddebug/invoke_jsare blocked entirely and never execute even with user confirmation Source:src/deep-link-handler.ts(SAFE_COMMANDS,BLOCKED_COMMANDS); Rust backstop:deep_link_mcp_callinsrc-tauri/src/lib.rs
- Read-only / notify actions (e.g.
17.4.1 TUIC SDK (window.tuic)
- Injected automatically into every plugin iframe (inline and same-origin URL mode)
- Feature detection:
if (window.tuic)—tuic.versionreports SDK version - Files:
tuic.open(path, {pinned?}),tuic.edit(path, {line?})(both accept an absolute path outside registered repositories as an external file),tuic.getFile(path): Promise<string> - External URLs:
tuic.openUrl(url)acceptshttp,https, andmailtoonly - Path resolution: relative paths resolve against the asking panel’s repository; absolute paths match longest repo prefix;
../traversal outside repo root is blocked - Repository:
tuic.activeRepo()returns active repo path;tuic.onRepoChange(cb)/tuic.offRepoChange(cb)for live updates - Terminal:
tuic.terminal(repoPath)— open terminal in repository - UI feedback:
tuic.toast(title, {message?, level?, sound?})— native toast notifications with optional sound (info blip, warn double-beep, error descending sweep);tuic.clipboard(text)— copy to clipboard from sandboxed iframe - Messaging:
tuic.send(data)/tuic.onMessage(cb)— bidirectional host↔plugin communication;PanelHandle.sendreaches SDK listeners through the host-message envelope - Plugin lifecycle: panel tabs and bridges close on plugin unload; state observers receive active branch, shell state and awaiting-input transitions
- HTTP scope:
net:httprequires a non-emptyallowedUrlsmanifest declaration - Theme:
tuic.theme— current theme as JS object (camelCase CSS vars);tuic.onThemeChange(cb)for live updates <a href="tuic://open/...">and<a href="tuic://terminal?repo=...">links intercepted automaticallydata-pinnedattribute on links sets pinned flag- Interactive test page:
docs/examples/sdk-test.html(seedocs/tuic-sdk.mdfor launch instructions)
17.5 Preinstalled External Plugins
- Plan Tracker — Detects agent plan files from structured events and opens them as background tabs
- Stories Ticker — Shows the active repository’s open story count in the shared status ticker
- Both are seeded once during migration, then remain independently uninstallable and updateable through the plugin catalog
Note: Claude Usage Dashboard was promoted from a plugin to a native SolidJS feature (see section 6.6). It is managed via Settings > Agents > Claude > Usage Dashboard toggle.
17.6 Example External Plugins
See examples/plugins/ for reference implementations:
hello-world— Minimal output watcher exampleauto-confirm— Auto-respond to Y/N promptsci-notifier— Sound notifications and markdown panelsrepo-dashboard— Read-only state and dynamic markdownreport-watcher— Generic report file watcher with markdown viewerclaude-status— Agent-scoped plugin (agentTypes: ["claude"]) tracking usage and rate limitswiz-kanban— Wiz framework plugin: kanban board for managing the workflow of plans, stories, and reviews with drag-and-drop
17.7 Claude Wakeup Plugin
Agent-scoped plugin (agentTypes: ["claude"]) that wakes Claude Code when it stalls without asking a question. Ships in plugins/claude-wakeup/.
- Idle detection: After 20 s of shell idle with no pending question, no active sub-tasks, and no choice prompt, sends a verification message to the agent
- Typing suppression: Every busy→idle transition resets the idle clock, so keystroke-generated shell-state blips prevent false wakes
- Done detection (primary): Watches the busy-cycle duration after a wake — short cycle (<8 s) = agent acknowledged (“done”), long cycle (≥8 s) = agent continued working
- Done detection (secondary): OutputWatcher fast-path for agents that emit a clean
doneline - Disarm/re-arm: Disarms after confirmed done; re-arms only when the user gives new input after the disarm timestamp and the agent works >10 s
- Limits: Max 3 wakes per stall, max 12 per session lifetime
- Dashboard: Markdown stats panel with wake counts, done rate, active session state, and history
- Pause/Resume: Via Activity Center toggle (transient, not persisted)
- Configuration:
data/config.json—idleThresholdMs,maxWakes,maxWakesEver,doneMaxBusyMs,checkIntervalMs,minBusyDurationMs,questionStaleMs,pendingTimeoutMs - Capabilities:
pty:write,pty:read,ui:ticker,ui:markdown
18. Mobile Companion UI
Mobile resume diagnostics retain a bounded per-tab lifecycle trail and upload the prior abnormal document automatically after the next boot. Log writes acknowledge HTTP 204 responses. This collects evidence; it does not claim to fix the reported iPhone grey screen. See the remote-access guide for storage limits.
The session overflow menu has a Markdown section with the file tabs open on the desktop for the session repository. Each entry shows its title and relative path and opens the existing mobile Markdown viewer. Desktop opens and closes update the list through SSE; worktree files retain their original checkout.
Waiting terminal ego questions show Input, including narrow terminals whose selector footer wraps mid-word. Native selectors open automatically when a new question arrives or a waiting session opens. Tap the question icon in the session header to hide or reopen the full question and its wrapping options. A selection_required reply refusal reopens the controls and preserves the draft without sending an answer. Single-choice submits one option; multiple-choice toggles options until Submit answers; free-text uses the composer. The card overlays the terminal without reserving rows. Native choice dialogs hide suggested actions while their answer controls are open. Other waiting reports show their current suggested actions instead of generic Yes/No confirmations.
Phone-optimized progressive web app for monitoring AI agents remotely. Separate SolidJS entry point (src/mobile/) served by the existing HTTP server at /mobile.
Both mobile composers share the + menu, text box with browser dictation, and Send layout. Attach file and Take photo use separate pickers. Terminal Queue keeps its long-press shortcut; Commands (/) inserts a slash in agent terminals. AI Chat offers Park/Restore/Swap draft, plus Queue and Stop while busy. Unsupported actions are hidden. Menus close on outside tap or Escape and use 44 px action targets. Desktop Chat controls and Ctrl+S are unchanged.
18.1 Architecture
- Separate Vite entry point (
mobile.html+src/mobile/index.tsx) - Shares transport layer, stores, and notification manager with desktop
- Sessions opens by default; the five bottom tabs are Sessions, Chat, Files, Progress, and Activity. Settings opens from the app-bar overflow.
- Chat opens the cross-repository chat directly. Read ego’s streamed ACP conversation with shared transcript cards and collapsed activity, answer pending interactions, and switch among titled saved conversations.
- Server-side routing:
/mobile/*→mobile.html, everything else →index.html - On iPad, the root URL opens mobile by default. Settings → Open Desktop UI remembers the choice on that device; the desktop banner’s Switch link clears it and returns to mobile. The installed PWA scope includes both interfaces.
- Session state accumulator enriches
GET /sessionswith question/rate-limit/busy state - SSE endpoint (
/events) and WebSocket JSON framing for real-time updates
18.2 Sessions Screen
- Hero metrics header: Working, Idle and Awaiting counts with large tabular-nums display. Counts share the row badge state and Working hold across poll updates. Sub-tasks rows count as Working; Finished, Error and Rate Limited rows count in none of these totals. Exited sessions leave the live list.
- Search button at the top right filters the live session list by name, repository path, worktree path, branch, or agent type; closing search restores the full list
- Waiting sessions appear first; the list preserves order within waiting, idle-agent, and shell groups. Session names keep their original casing, and busy state reads “Working”.
- The new-session sheet selects Claude Code, Codex, or Gemini, searches repositories, and opens the created agent session. Its close button and backdrop dismiss the sheet.
- Question banners identify the session and repository; the AWAITING tile is the only awaiting total and opens the first waiting session.
- Elevated session cards with agent icon, status badge, project/branch, relative time
- Rich sub-rows per card: agent intent (crosshair icon) or last prompt (speech bubble), current task (gear icon) with inline progress bar, usage limit percentage
- Question state highlighted via inset gold box-shadow
- Pull-to-refresh spinner via touch events
- Loading skeletons during initial data fetch
- Empty state with instructional hint
- Tap card to open session detail
18.2.1 Files Screen
- Select a configured repository and browse its directories one level at a time
- Repository paths truncate from the left and reveal the complete path on long press; normal folders precede hidden folders
- Search recursively for files by name or repository-relative path from the tree
- File view and editor keep Back, file name, and Edit or Cancel/Save on one row with 44 px buttons; the editor fills the remaining height and soft-wraps lines
- From a session header’s overflow menu, open Files at that session’s worktree root, or at the registered repository containing its working directory; Back returns to the still-mounted session and preserves its output and draft
- Markdown paths in session output open here through the desktop terminal-path resolver. Absolute, relative,
file://, andtuic://open//references are supported, including line numbers. Files outside registered repositories open from their own folder; directories outside them are refused with a toast naming the path. - Show an explicit error when the session has no repository path, no registered repository contains its working directory, or the directory request fails
- Open
.mdfiles as rendered Markdown using the desktop’s sharedContentRenderer; other UTF-8 text files remain plain text - Tap a task-list checkbox (a 44 px target around the box) in a rendered
.mdfile to toggle- [ ]/- [x]/- [~]on disk; tap a paragraph, heading or list item to select it and add a comment, saved as the same<!--tweak:block:...-->/itemmarker the desktop Markdown tab writes - Every mobile write (checkbox, comment, Edit → Save) goes through
write_file_if_unchanged: if the file changed on disk since it was read, nothing is written, the view reloads and a notice asks to repeat the change (an edit draft or comment draft is kept) - Switch from View to Edit for source changes, then save and return to View
- Refuse files over 1 MB before reading and show a clear message for binary or non-text files
18.3 Session Detail Screen
- Mirrored sessions stream through the connected desktop server to their owning daemon, so the phone stays on its HTTPS origin; the session kill action reaches that owner too
- Live output via WebSocket with
format=log(VT100-extracted clean lines, auto-scrolling, 500-line live tail). Scrolling up or touching retains the reading window and fetched history; the next log update after returning to the bottom restores the live tail. - HTTP and HTTPS links in output open in the phone’s external browser; Markdown path controls open the Files editor.
- Mobile CLI preserves active dialog options and interaction footers, including startup trust, external-file imports and command permissions, without dialog-title exceptions.
- Claude
/resumeretains its full session list and filtered or no-match search results in both initial HTTP output and live log-WebSocket frames; key-bar arrows and Enter operate the real terminal picker - Source-width prose rows are rejoined before the phone wraps them; short lines, lists, and box-drawing blocks retain their layout
- When a mobile output line wraps, its continuation keeps the line’s leading spaces or tabs; unindented prose and horizontally scrolling box-drawing blocks retain their layout
- Claude tool-call status dots reserve one text cell in both visible and blank pulse frames; wrapped continuations retain the same hanging indent through the green completion frame
- Semantic colorization: log lines are color-coded by type (info, warning, error, diff +/-, file paths) via
classifyLine()utility - Search/filter in output: text search bar filters visible log lines in real time
- Compact 56 px header: desktop agent logo with a state dot, session display name, repository/branch, state, elapsed activity time, tasks count, and an overflow menu. Tapping the name reveals intent and current task in a transient sheet. Tasks opens current work and intent history; overflow Progress opens this session’s filtered journal in a bottom sheet. Files, output search, Ideas, quick commands, usage, copy ID, and terminate remain in overflow. The terminal keeps its height because these panels overlay it.
- Error bar (red tint) when
last_erroris set - Rate-limit bar (orange tint) with live countdown timer (
formatRetryCountdown) - Suggest follow-up chips: horizontal scrollable pills from
suggested_actions, tap to send - Slash menu overlay: the keybar
/inserts at the composer selection through the same input path as typing; both sync to the PTY and show only detected agent menu entries with navigation. Surrounding draft text is preserved. Removed commands are hidden, and the close button dismisses the menu. Picking a command fills the input; submitting waits for the agent’s Enter gap - Quick-action chips: Yes, No, y, n, Enter, Ctrl-C
- Mobile terminal queue: CLI and Chat share the pending prompt list. An older host without the queue-read endpoint does not show an error when there is no pending count or accepted local enqueue. Other queue-read failures remain visible and retryable.
- TerminalKeybar: 44 px tall, horizontally scrollable row of
/, Ctrl, Tab, Esc, arrow and Enter keys above the main input, with no visible scrollbar. Ctrl opens a menu for Ctrl+C, Ctrl+B, Ctrl+D and Ctrl+Enter; Ctrl+C and Ctrl+D are danger-coloured. A choice sends once and closes the menu; an outside tap or Escape dismisses without sending. Ctrl+Enter follows the agent registry: CSI-u submits in Claude Code and inserts a newline in OpenCode; LF supplies the newline fallback for Codex, Goose, Grok and pi; CSI-u steers a busy turn in current ego. Uninstalled agents use documented newline fallbacks or conservative CSI-u; seedocs/evidence/ctrl-menu-1660/README.md. When the agent is awaiting input without native choices or suggested actions, it adds Yes/No quick-reply buttons. Current suggested actions take priority over these generic confirmations without clearing the Input state. Tab and Up/Down still reach a waiting terminal picker when no parsed choices exist, without importing picker text into a local answer draft. The composer input and Send button also have 44 px touch targets. After the session ends, the keybar and composer are disabled and the stale status badge is hidden - CLI command widget: agent-specific quick commands (e.g.,
/compactfor Claude Code and/statusfor Codex) accessible via expandable button - Text command input with 16px font (prevents iOS auto-zoom),
inputmode="text" - Offline retry queue:
write_ptycalls that fail due to network disconnection are queued and retried when connectivity resumes - Back navigation to session list
- Header Files button opens the session repository without going through the repository picker
18.4 Question Banner
- Persistent overlay when any session has
awaiting_inputstate - Shows agent name, truncated question, Yes/No quick-reply buttons
- Visible on all screens, between top bar and content
- Stacks multiple questions
18.5 Activity Feed
- Chronological event feed grouped by time (NOW, EARLIER, TODAY, OLDER)
- Local 24-hour timestamps, minute-scale run durations, and singular block counts
- Hydrates persisted activity from the server when the mobile tab opens; dismissed items stay hidden and current live items remain visible
- Throttled grouping: items snapshot every 10s to prevent constant reordering with multiple active sessions; new items/removals trigger immediate refresh
- Sticky section headers, tap to navigate to session
18.6 Session Management
- Session kill: swipe or long-press a session card to kill/close the PTY session
- New session: create a new PTY session from the sessions screen (optional shell/cwd selection)
- Progress: lists projects with journal entries by recent activity, then shows and switches their saved entries without a desktop repository selection
- Long Progress messages collapse to four lines with a More/Less control on mobile
18.7 Settings
- Connection status: connectivity indicator with real-time Connected/Disconnected state
- Server URL display
- App and server versions, plus a persistent Dark/Light choice using desktop theme colors and a separate server-side mobile preference
- Notification sound toggle (localStorage-persisted)
- Open Desktop UI link
18.8 PWA Support
- Mobile session attachments use a bare icon on the left. Smaller mic and Send controls sit inside the input border on the right; compact gaps preserve draft width.
- Mobile session and AI Chat composers accept camera photos and files from one
picker. Binary files stream to
attachments/<session>/under TUIC’s data directory. Uploads never create repository files or edit.git/info/exclude. Claude gets--add-dirand Gemini gets--include-directories. Gemini uses a session-owned trusted-folders overlay that preserves existing trust decisions and trusts only this upload directory; global Gemini settings stay unchanged. Codex and Grok need no extra flag. Ego PTY launches get--read-only-dirfor this directory, including confined runs; no stored ego configuration changes. - Close, kill and process exit delete that session’s uploads. Startup removes session directories whose recorded owner process is provably dead. Live and unknown owners are preserved; resumed tabs get fresh PTY directories and grants. Old attachment references in a resumed transcript are unavailable and must be uploaded again. Generated old grants are removed from saved launch commands.
- An agent started before attachment grants were provisioned receives a clear
upload error asking for a new session. Absolute binary paths bypass shell
shims; use TUIC’s structured agent launch to receive its directory grant.
Custom wrapper binaries keep their arguments without added harness grant flags.
A wrapper that calls Claude/Gemini/ego by name uses the inherited shell shim; an
absolute harness hop must arrange its own read access. Disabling launch marker
instructions does not disable the Claude directory grant.
Typed ego commands receive the same read-only directory grant. Structured ego
runandresumelaunches receive the grant after the subcommand so the CLI does not interpret the subcommand as a prompt. - ACP binary uploads are scoped to the attached conversation and removed on detach or connection settlement (including EOF). Ego over ACP currently rejects extra read directories: the composer displays a notice that the stored path requires an existing ego profile root. Inline ACP images keep their native image-content transport and do not need a filesystem grant.
- Existing repository
.tuic/attachments/directories and local excludes are untouched. You can remove these old directories and exclude entries by hand. - Installed Android Chrome PWAs accept shared files through the manifest share target and stage them in AI Chat. Safari on iOS has no Web Share Target support.
- Web app manifest (
mobile-manifest.json) with standalone display mode - iOS Safari and Android Chrome Add to Home Screen support
apple-mobile-web-app-capablemeta tags- PNG icons (192x192, 512x512) for PWA installability
18.8.1 Push Notifications
- Web Push from TUICommander directly to mobile PWA clients (no relay dependency)
- VAPID ES256 key generation on first enable; the private key is held in the OS credential vault and the public key in config
- Service worker (
sw.js) handles push events and notification clicks PushManager.subscribe()flow with user gesture (click handler) for iOS/Firefox- Push subscriptions stored in
push_subscriptions.json, survive restarts - API endpoints:
POST/DELETE /api/push/subscribe,GET /api/push/vapid-key,POST /api/push/test - Push providers: built-in Google, Mozilla, Windows and Apple hosts, plus hosts the owner adds in Settings → All Settings (
services.push.added_providers). HTTPS is required; a subscription cannot add its own provider, and removing a host stops delivery to it - Triggers: an explicit managed-agent
progress type=blockedreport (with its question text), a parsed agent question when a real title is available,PtyExit(session completed), and a still-pending ACP permission or form elicitation. A bare AskUserQuestion hook can signal awaiting without text; it does not spend the push limit before the title arrives - Deep link: notification click navigates to
/mobile/session/<id>, opening the specific session detail - ACP interaction pushes link to
/mobile?repo=…&session=…, selecting the correct Chat conversation; answered requests and ordinary ACP activity do not push - Visible notifications use one tag per session, so a new question replaces only that session’s earlier notification; generic alerts keep a separate shared tag
- Delivery gate: push is sent when the desktop window is unfocused or macOS HID input has been idle for at least two minutes. An active desktop suppresses duplicate alerts; platforms without HID idle information retain the focus gate
- Silence subagent sounds and notifications also suppresses question and completion pushes from parented sessions. Exit events retain their spawn parentage until the state accumulator applies them; parent and user-started sessions are unaffected.
- Question and completion pushes share one 30-second limit per session
- ACP interaction pushes use the same 30-second limit for each conversation
- A managed session’s free-text mobile reply uses the atomic
session submitpath and retains the draft if the session rejects it. It can answer a confident question while queued automated messages stay parked. Numbered choices keep their key-input path. For Codexrequest_user_input, the session header opens the queued question; its title and options appear in the transient choice overlay, and numbered answers use one PTY key. TheOtherchoice opens Codex notes for a typed answer. The control uses the existing header, preserving all terminal rows - Claude AskUserQuestion publishes its actual choices in the same mobile overlay; a tap follows the backend’s arrow-and-Enter selection contract instead of using generic Yes/No keys
- Stale subscriptions cleaned on HTTP 410 Gone
- iOS standalone detection: shows “Add to Home Screen” guidance when not installed
- HTTP detection: shows “Push requires HTTPS (enable Tailscale)” when not on HTTPS
Mobile terminal queued prompts have a Hide action beside the existing FIFO count. The hidden panel keeps one compact count/Show control that updates as work changes. Tap it to restore Cancel and Clear all. An empty user queue resets the disclosure for new work. Server mail wakes and spawned task prompts stay out of this mobile list/count; Clear all preserves them (#2639-173b).
18.9 Notification Sounds
- Session notification sounds play only while the Sessions list and PWA document are visible; session detail, Chat, Files, Progress, Activity, and Settings remain silent. Muted transitions are tracked without replay, and deferred completions recheck visibility and the host subagent-silence setting before playback. Parented sessions follow Silence subagent sounds and notifications without replaying muted transitions. Mobile startup loads the host notification snapshot before subscribing to settings refresh, so a fresh PWA respects the saved host preference.
- Audio playback via Rust
rodiocrate (Tauri commandplay_notification_sound), replacing the previous Web Audio API approach - Eliminates AudioContext suspend issues on WebKit and works in headless/remote modes
- Native tones end on an exact zero-amplitude sample and keep the output stream alive for a 100 ms silent tail, avoiding end-of-chime clicks when CoreAudio releases a short-lived stream
- One shared 500 ms anti-spam gate covers every sound type, preventing different tones in a notification burst from overlapping; explicit Settings test playback bypasses it
- State transition detection: question, rate-limit, error, completion
- Completion notifications deferred 10s and suppressed when active sub-tasks are running (detected via
⏵⏵/››mode-line prefix) - In the desktop app, an unfocused agent question also sends a native OS notification naming its terminal. The Tauri notification plugin handles desktop delivery; macOS retains the native response handle through a desktop command so a click returns to the terminal. Permission is checked once, and focused windows and repeated notices within five seconds are suppressed
- Sounds:
question(C5→E5 chime),completion(C5→E5→G5 arpeggio),error(E4→C4),warning(A4 double-tap),info(single G5 pluck), andattention— a triangular G4→G4→E5 callback with two short knocks and a longer rise. Native and browser/PWA playback share the motif and 0.8 gain; each engine applies its own envelope. The repeated opening is immediately recognizable while the softer timbre avoids the old square buzzer’s harshness. Meant for an agent that is working unattended and is blocked on the user - Each sound has its own on/off toggle and Test button in Settings > Notifications, and all of them honour the global volume and chosen output device
- Agents can raise them over MCP:
ui action=toast sound="attention"(see 19.xuitool).sound: truestill means “the tone matchinglevel”; a name overrides it. These agent notices appear in the bell and also show a card only while their origin terminal tab is active (configurable);urgency="urgent"always shows a transient card; consecutive identical notices within five seconds play once. The sound plays through this scheme, so a muted sound stays muted no matter who asked for it
18.10 Visual Polish
-
Frosted glass bottom tabs:
backdrop-filter: blur(20px) saturate(1.8)with semi-transparent background -
Elevated card design:
border-radius: var(--radius-xl),background: var(--bg-secondary), margin spacing -
Safe-area-inset padding for notched devices
-
font-variant-emoji: texton output view — forces Unicode symbols (●, ○, ◉) to render as monochrome text glyphs instead of colorful emoji -
The mobile Ideas overlay uses the same browser dictation hook and mic as the composer. Speech replaces the selection captured at the start of a take; later hypotheses replace only that speech and keep the surrounding idea text. Dictation never saves an idea or sends it to a session. Typing or adding the idea cancels recognition. Empty takes preserve selected text; settings and failure handling match the composer. Its mic is disabled while a voice call or terminal browser dictation owns the microphone.
18.11 Standalone CSS
- Mobile human replies can answer an awaiting agent even while its shell remains busy and no question was recognized. Recognized native questions keep their direct answer controls. Rejected replies retain the draft and show the backend reason instead of a generic busy message.
- The mobile composer offers browser dictation directly next to Send (44 px touch targets) when
SpeechRecognitionorwebkitSpeechRecognitionis available. Interim and final speech append to the draft without focusing the textarea or sending; tap again to stop. Editing the draft cancels recognition and keeps the edit exactly; the mic becomes available again when the browser confirms the previous session has ended. Errors also retain the microphone claim until that confirmation, so repeated taps cannot overlap recognition sessions. Late results from the cancelled recording are ignored. Errors request cancellation through the same shutdown path, keep the draft, and show a toast. The toast is the only failure surface; no error label or failure colour remains on the composer mic. It uses the configured dictation language, falling back to the browser language for automatic detection. Browser dictation and server hands-free conversation cannot record together. Bounded, content-free lifecycle debug records carry session/take IDs to the existing diagnostic log ring for incident reconstruction. - Mobile CLI output follows the bottom through keyboard and viewport resizes while following; a reader who scrolled up keeps their position.
- Mobile CLI and Chat output show a floating down-arrow at the bottom-right of the output area while scrolled back, at least 8px above the key bar and outside the composer. It has its own touch target and never covers the key bar. Tap it to return to the latest output; it hides at the bottom and never sends a terminal key.
- Mobile Settings → Appearance offers independent Terminal and Chat font controls (10–24 px), each saved on this device. Existing defaults remain 14 px for CLI and Chat body text. Chat changes affect Session Chat and AI Chat transcripts only; composers and UI chrome do not change. CLI output rewraps locally and preserves the visible row without resizing the shared PTY.
- Mobile Settings → Input → Autocorrect and spellcheck enables keyboard correction and sentence capitalization for the terminal prompt and mobile Chat composers by default. Disable it for literal command entry. The preference stays on this device across reloads; file and code editors keep spellcheck off.
- Dictated mobile drafts survive reload without automatic terminal input. Send or the first edit reconciles the restored draft with the current terminal line, preserving cleared text without duplicating text still present.
- iPhone Home Screen availability remains device-dependent: WebKit bug 225298 documents the historical standalone restriction; Safari’s 14.1 release notes require Siri enabled. Feature detection and error handling apply; Safari tab support does not prove PWA support.
- Mobile PWA uses its own standalone stylesheet (
src/mobile/mobile.css), independent from the desktopglobal.css - Shares core color palette and border radius tokens; differs in font stacks, layout approach, and iOS-specific rules
- WebSocket state deduplication: duplicate state pushes are filtered to reduce unnecessary re-renders
19. MCP Proxy Hub
TUICommander aggregates upstream MCP servers and exposes them through its own /mcp endpoint. Any MCP client (Claude Code, Cursor, VS Code) connecting to TUIC automatically gains access to all configured upstream tools.
Forced urgent agent mail
agent action=send urgency=urgent (interrupt is an alias) uses the same
forced-steer flow as Chat Send now and Compose Steer. It sends Escape to a safe
working Claude Code, Codex or ego, confirms idle within ten seconds, then submits
the full message. Dialogs and drafts block input. Unsupported agents and timeouts
stay inbox-only, never an ordinary queued notice. Receipts report
urgent_delivered, interrupt_delivered, both failure reasons and delivery_path.
Normal mail remains non-interrupting. Interrupted tools may leave partial work,
and their child processes may continue.
19.1 Architecture
- TUIC acts as both an MCP server (to downstream clients) and an MCP client (to upstream servers)
- All upstream tools are exposed via the single
POST /mcpStreamable HTTP endpoint - Native TUIC tools (
session,agent,repo,story,workflow,automations,remote,secret,progress,ui,plugin_dev_guide,voice,settings,debug) coexist with upstream tools - Tool routing: names containing
__are routed to the upstream registry; all others handled natively
19.1.1 Lazy Tool Discovery (collapse_tools)
- Native MCP switches in Settings use domain sections, with rare and conditional tools separate. Each tool retains its own saved switch and existing permission gates.
- When
collapse_tools: true(Settings > MCP > TUIC Tools > “Collapse tools”), the full tool list is replaced with 3 meta-tools:search_tools,get_tool_schema,call_tool - Grok sessions (
clientInfo.namematchinggrok-shell-*) receive the same 3 meta-tools automatically because Grok rejects nested qualified names such astuicommander__upstream__tool; this per-session compatibility mode leaves the global setting and other clients unchanged, and the bridge restores it after TUIC reconnects - Cuts MCP context from ~35k tokens to ~500 tokens per agent turn; agent fetches schemas on demand via BM25-ranked search
- BM25 index backed by
AppState::tool_search_index(rebuilds automatically when the tool set changes) - Settings native-tool switches and descriptions come from the backend MCP registry, including disabled tools; newly registered tools appear automatically. Every native tool can be disabled.
- Capability filters (
mcp_capabilities.denied, upstream allow/deny) enforced at both discovery and dispatch time — agents cannot bypass filters by callingcall_tooldirectly - Conditional tools share discovery and call gates:
remoteneeds a connected remote server;voiceneeds enabled dictation and spoken replies;telegramneeds enabled setup, a bot alias and its private token file. Owner changes notify clients to refresh the catalogue. - Toggling fires
notifications/tools/list_changed; compatible connected clients refresh automatically, while clients that ignore the notification may require a reconnect
19.2 Tool Namespace
- Upstream tools are prefixed:
{upstream_name}__{tool_name} - Double underscore (
__) is the routing discriminator — native tool names never contain it - Tool descriptions are annotated with
[via {upstream_name}]to identify origin - Clients always see the merged tool list in a single
tools/listresponse
19.3 Supported Transports
- HTTP (legacy Streamable HTTP, revision 2025-11-25) — connects to any MCP server with an HTTP endpoint and sends
MCP-Protocol-Versionon every POST - Stdio (legacy revision 2025-11-25) — spawns local processes (npm packages, Python scripts, etc.) communicating via newline-delimited JSON-RPC
19.4 Circuit Breaker (per upstream)
- 3 consecutive failures → circuit opens
- Backoff: 1s → exponential growth → 60s cap
- After 10 retry cycles without recovery → permanent
Failedstate - Recovery: successful tool call or health check resets the circuit breaker
19.5 Health Checks
- Background task probes every
Readyupstream every 60 seconds viatools/list(HTTP) or process liveness check (stdio) CircuitOpenupstreams with expired backoff are also probed for recovery
19.6 Tool Filtering (per upstream)
- Allow list: only matching tools are exposed
- Deny list: all tools except matching ones are exposed
- Pattern syntax: exact match or trailing-
*prefix glob
19.6.1 Per-Repo Scoping
- Each repository can define an allowlist of upstream server names in
RepoSettings.mcpUpstreams - 3-layer merge: per-repo user settings >
.tuic.json(team-shareable) > defaults (null = all servers) - Quick toggle via Cmd+Shift+M popup: shows all upstream servers with status, transport, tool count, and per-repo checkboxes
- Toggling a checkbox immediately persists to repo settings (reactive, no refresh needed)
19.7 Hot-Reload
- Adding, removing, or changing upstreams takes effect on save without restarting TUIC or AI clients
- Config diff computed by stable
idfield; only changed entries are reconnected
19.8 Credential Management
- Bearer tokens stored in OS keyring (Keychain / Credential Manager / Secret Service)
- Keyring warm-up — resolved bearer token cached in memory after the first read. Health checks (every 60 s) and tool calls reuse the cache, invalidated on 401 and re-populated after token refresh. Eliminates repeated macOS Keychain permission prompts
- Config file (
mcp-upstreams.json) never contains secrets - Per-upstream credential lookup at call time
- OAuth 2.1 token sets persisted as structured JSON in the keyring (
{"type": "oauth2", "access_token", "refresh_token", "expires_at"})
19.8.1 OAuth 2.1 Upstream Authentication
- Full RFC 9728 (Protected Resource Metadata) + RFC 8414 (Authorization Server Discovery) flow with PKCE S256
UpstreamAuth::OAuth2 { client_id, scopes, authorization_endpoint?, token_endpoint? }joinsBeareras a credential type; endpoints auto-discovered from the resource server’sWWW-Authenticatechallenge when omitted- Completion via native deep link
tuic://oauth-callback?code=…&state=…— callbacks never touch the WebView console TokenManagershared across everyHttpMcpClientrefresh path with a per-upstream semaphore that defeats thundering-herd refresh. 60 s expiry margin;None expires_attreated as validUpstreamError::NeedsOAuth { www_authenticate }transitions the registry toneeds_auth; the Settings MCP page shows an Authorize button- Auto-triggered OAuth is gated behind explicit user consent; a blocking in-app confirm dialog surfaces the Authorization Server origin and prevents the pending flow from being cancelled behind the prompt
- Status values extended:
authenticating(“Awaiting authorization…”) +needs_auth - Tauri commands:
start_mcp_upstream_oauth,mcp_oauth_callback,cancel_mcp_upstream_oauth
19.9 Environment Sanitization (stdio)
- Parent environment is cleared before spawning to prevent credential leakage
- Safe allowlist re-applied:
PATH, HOME, USER, LANG, LC_ALL, TMPDIR, TEMP, TMP, SHELL, TERM - User-configured
envoverrides applied on top
19.10 SSE Events
upstream_status_changedevents emitted on status transitions (connecting, ready, circuit_open, disabled, failed)tools/list_changednotification emitted when upstream tool lists change, enabling live tool-list updates for connected MCP clients- Delivered via
GET /eventsSSE stream
19.11 Metrics (per upstream, lock-free)
call_count— total tool calls routederror_count— total failed callslast_latency_ms— last observed round-trip time
19.12 Validation
- Names: must match
[a-z0-9_-]+, must be unique - HTTP URLs: must use
http://orhttps://scheme only - Self-referential URL detection: rejects URLs pointing to TUIC’s own MCP port
- Stdio: command must be non-empty
- All errors collected (not just first) and returned to caller
- Respects sound toggle from Settings screen
20. Performance
20.1 PTY Write Coalescing
- Paint triggers coalesced per animation frame via
requestAnimationFrame(~60 repaints/sec) - High-throughput agent output (hundreds of events/sec) batched into single grid frame updates
- Reduces canvas render passes during burst output
- Flow control (pause/resume at HIGH_WATERMARK) unchanged
20.2 Async Git Commands
- All ~25 Tauri git commands run inside
tokio::task::spawn_blocking - Prevents git subprocess calls from blocking Tokio worker threads
get_changed_filesmerged from 2 sequential subprocesses to 1
20.3 Watcher-Driven Git Cache
repo_watcher(FSEvents/inotify) monitors the working tree with per-category debounce. macOS/Windows use one recursive watch; Linux splits into pruned non-recursive working-tree watches (skippingnode_modules/target/gitignored, with new dirs added dynamically) plus targeted.gitwatches (root +refs/worktrees, neverobjects/logs), to avoid inotify event storms (issue #82)- CategoryEmitter routes events to Git, WorkTree, or Config handlers with trailing debounce
.gitignore-aware filtering prevents unnecessary cache invalidations- Cache hit ~0.2ms vs git subprocess ~20-30ms
- 60s TTL as safety net for missed watcher events
20.4 Process Name via Syscall
proc_pidpath(macOS) //proc/pid/comm(Linux) replacespsfork- Eliminates ~100 fork+exec/min with 5 terminals open
20.5 MCP Concurrent Tool Calls
HttpMcpClientusesRwLockinstead ofMutex- Tool calls use read lock (concurrent); only reconnect takes write lock
20.6 Serialization
- PTY parsed events serialized once with
serde_json::to_value - Reused for both Tauri IPC emit and event bus broadcast (was serialized twice)
20.7 Frontend Bundle Splitting
- Vite
manualChunks: terminal, codemirror, diff-view, markdown as separate chunks - SettingsPanel, ActivityDashboard, HelpPanel lazy-loaded with
lazy()+Suspense - PTY read buffer increased from 4KB to 64KB for natural batching
20.8 Conditional Timers
- StatusBar 1s timer only active when merged PR countdown or rate limit is displayed
- ActivityDashboard snapshot signal uses default equality check (no forced re-render every 10s)
20.9 Profiling Infrastructure
- Scripts in
scripts/perf/: IPC latency, PTY throughput, CPU recording, Tokio console, memory snapshots tokio-consolefeature flag for async task inspection- See
docs/guides/profiling.md
20.10 Process Monitor
- Reports CPU% and resident memory (RSS) for TUIC and every child process tree, each row attributed to the session that owns it
- Agent lifecycle also classifies the owning process tree: meaningful background descendants keep
agent_state=workingwhile an input-ready terminal may remainshell_state=idle; persistentmdkb,tuic-bridge, andnode_replhelper subtrees plus Claude’s standalone timedcaffeinate -i -t <seconds>assertion are excluded by executable name or authoritative argv path. Acaffeinateinvocation that wraps a command remains meaningful. A descendant that started within 60s of the agent itself is also excluded whatever its name, which covers the daemons no list can anticipate —codex-code-mode-host, or an MCP server launched throughnpm exec; platforms that report no process age fall back to the name rule alone A ready observation waits for a newer shared process snapshot, and polling stops once no probe or background work remains - Unix: a single batched
ps -o pid,rss,%cpuquery across all PIDs (not one stat per process); Windows: per-process working-set size via the platform API - Process statistics use HTTP
GET /process/stats(JSON{ session_id, name, pid, rss_kb, cpu_pct }), whileGET /process/monitorserves a self-contained HTML dashboard with no build step or external assets. The removed MCPsession action=process_statsis not supported; clients must call the HTTP route directly. - Frontend
ProcessManagerModalopens the dashboard in-app - Use to diagnose which agent/terminal is driving high CPU or memory
20.11 Runtime Diagnostics (CPU watchdog + diagnostic mode)
-
Temporary mobile Send traces: the existing
perfDebuggate enables one metadata-onlymobile-senddebug summary per terminal-composer press, mirrored to the host log. Event retention is capped at 24 records with a five-second deadline. No draft or DOM text is recorded. See Temporary Send diagnostics (#2462-5839). -
Persistent stall evidence: selected slow refresh, UI freeze and heartbeat-gap observations use a bounded two-file metadata-only journal. The replay builder creates anonymized count-based inputs, not a reconstruction of the original stall. See Stall journal.
-
Always-on CPU watchdog (zero overhead when idle): polls
getrusage(RUSAGE_SELF)every 5s and logs a full snapshot when TUIC’s own CPU stays above 80% for 10+ consecutive seconds. PTY children (cargo, rustc, …) are separate OS processes and don’t count toward the measurement -
Sleep/wake aware: inter-tick gaps over 30s are treated as the machine having been asleep (lid closed) and skipped, so stale tokio-timer ticks after wake don’t trigger false spikes or idle cascades
-
Diagnostic mode (toggleable at runtime, off by default): emits a health snapshot every 30s and alerts on FD/thread growth trends. Each snapshot includes:
cpu_pct(TUIC self only, viaRUSAGE_SELF),children_cpu(aggregate %cpu of all PTY child process trees + the hottest individual child — note the CPU watchdog spike trigger intentionally ignores children, so a hotcargo/agent only surfaces here), thread count, FD count, PTY session count, content-index build state, semaphore permits, sessions with grid frames outstanding (session×count, from theGridGatecounters), event-bus subscriber count, andhead_emits_suppressed(repo-watcherhead-changedemits skipped by the resolved-HEAD-target guard — a climbing value signals a filesystem-event storm) -
Frontend liveness (always on, desktop only): the WebView beats every 5s from its main thread; six missed beats log
Frontend unresponsive: no heartbeat for Nsexactly once, and the return beat logs a matching recovery line. Sleep/wake re-baselines the clock so a lid-close is never charged to the frontend. Recover withPOST /debug/reload_webview— a native-side navigation that works while the JS thread does not, and keeps every PTY session (they live in the backend). Recovery remembers only a URL on the app origin, including the configured development origin. Native navigations log their trigger, action, and target URL; each frontend initialization logs the document navigation type and start time. Frontend:src/utils/frontendHeartbeat.ts; backend:src-tauri/src/frontend_liveness.rs,src-tauri/src/webview_recovery.rs -
Control via HTTP:
POST /diagnostics {"enabled":true}to toggle,GET /diagnosticsfor status,GET /logs?source=diagnosticsto read the snapshots -
Developer agent capture scenarios record installed CLIs in isolated headless debug sessions; fixture promotion preserves bytes and checks ordered expected states through the replay oracle. See
scripts/agent_capture/README.md. -
Raw PTY captures can be directed to an absolute
TUIC_CAPTURE_DIRfor isolated regression evidence; the capture status reports the chosen directory. -
Catches known failure patterns: IPC flush loops, content-index CPU saturation, a blocked or dead WebView main thread (missed heartbeats — not grid frames outstanding, which a hidden terminal produces on purpose by never acking), FD/thread leaks, and sleep/wake false-idle cascades
-
Backend:
src-tauri/src/cpu_watchdog.rs
21. CLI Companion (tuic)
21.1 Overview
- Standalone Rust binary embedded as a sidecar, installed to system PATH
- Combines VS Code-style file opening, tmux-style session management, and agent orchestration
- Cross-platform: macOS, Linux, Windows
- Communicates via IPC (Unix socket / Windows named pipe) with the running TUICommander instance
- Auto-launches TUICommander if not running
21.2 Editor Mode
tuic [path]— open file or directorytuic open --goto file:line:col— open at specific positiontuic open --wait— block until file closed ($EDITOR support)
21.3 Session Management (tmux-compatible)
tuic ls/tuic new/tuic kill/tuic send/tuic capturetuic resize <id> WxH/tuic pause/tuic resume- Targets accept UUIDs, ID prefixes, or session names
- tmux key name translation (Enter, C-c, Space, etc.)
21.4 Agent Orchestration
tuic bg <log> -- <cmd>— run a detached command without inheriting the foregroundTUIC_SESSIONorTUIC_PARENT; the runner retains caller-bound completion evidence and typed wake authority; a native user stop revokes old automatic wakes without removing explicit queued requeststuic agent spawn <type> <prompt> [--repo <path>]— spawn AI agent on an initial prompttuic agent ls— list running agentstuic agent send <peer-uuid> <message>— deliver to a registered peer’s inbox through the registry, the same path as the MCPagent action=sendtool. ReportsDeliveredonly when something surfaced the message; aninbox_onlyroute readsBufferedtuic agent type <id> <message>— type into an agent’s terminal and submit, with the text and the Enter as separate writes (raw-mode TUIs treat a combinedtext\ras an unsent prefill)
21.5 tmux Compatibility Mode
tuic aliascreatestmux → tuicsymlink;argv[0]detection switches to compat mode- Supports:
new-session,list-sessions,kill-session,kill-server,send-keys,capture-pane,resize-pane,attach-session,has-session - Tools expecting tmux (e.g. Claude Code
--tmux) transparently use TUICommander
21.6 Installation
- First-run prompt on app launch (one-time, dismissible)
- Settings > General > TUIC CLI (install/uninstall button with status)
- Auto-update on app startup (silent, no elevation prompt)
- Paths:
/usr/local/bin/tuic(macOS/Linux),%LOCALAPPDATA%\Microsoft\WindowsApps\tuic.exe(Windows) tuic install-cli/tuic aliasfor self-service
22. Remote Daemon (tuic-remote) — Beta
22.1 Overview
- Shared GitHub poller lifecycle controls, repository status, PR snapshots and issue reads work without a WebView; events use
/eventsSSE and TCP keeps the existing authentication. Account/auth and GitHub mutation routes remain outside the headless monitoring surface. - Standalone headless binary for running TUICommander on servers without a desktop environment
- Same HTTP/WebSocket API as the desktop app’s remote access feature
- No Tauri dependency — pure Rust binary
- Available as GitHub Release artifacts for Linux x64/ARM64, macOS ARM, and Windows x64
tuic-bridgeis published for every one of those targets too, and belongs next to the daemon: the daemon writes an MCP entry naming it into the config of each agent installed on the machine, so an agent launched there gets the fulltuicommandertool surface (session,repo,progress,agent, peer mail)- Agents reach the daemon over its local IPC endpoint (
mcp.sock, or thetuicommander-mcpnamed pipe) — never over the authenticated TCP port - Runs the desktop’s background tasks that a machine needs: process snapshots, standby parking, content indexing and boot pre-warm, tool search index, upstream MCP auto-connect and health checks, CPU watchdog, maintenance sweep. It does not run the WebView watchdog (no WebView). Command-knowledge persistence was removed in #2115-1333. The embedded assistant’s scheduler and watcher engine are not on this list any more — they were deleted outright in #784-0aec
22.2 Configuration
- Without
--instance, uses the desktop app’s existing platform config directory, keyring servicetuicommander, uservault, and legacy migrations unchanged --instance <id>selects an immutable isolated namespace before password setup or startup: files under<platform-app-config>/instances/<id>/and keyring servicetuicommander-instance-<id>, uservault- Instance IDs are lowercase ASCII DNS labels of 1–63 characters with
alphanumeric ends and optional internal hyphens;
defaultis reserved - Named instances start empty and never fall back to or migrate default/legacy files or credentials. A release daemon exits before binding if its named OS keyring vault cannot be opened
--credential-file <path>explicitly seeds a process-local vault from a private JSON string map in release or debug builds, without an OS keyring or session bus. Missing or malformed input fails boot without exposing contents. Runtime credential edits stay in memory; rotation requires a file replacement and daemon restart. Automatic updates relaunch the installed startup executable path, including on Linux after the running inode is replaced, and reread the selected file. Desktop keyring defaults remain unchanged- Default port: 9877 (overridable via
TUIC_PORTenv var) --set-passwordperforms interactive password setup (bcrypt hashed) inside the instance selected earlier on the same command line- LAN auth bypass always disabled in headless mode (security hardening)
--bind <ip>selects the listening address; desktop-managed deployments pin it to127.0.0.1--survive-secs <n>exits after that many seconds without SSE or WebSocket clients; client activity resets the timer--no-agent-configsskips startup host agent MCP configuration writes for ephemeral and installed desktop-managed daemons, and cluster workers that must preserve the OS user’s agent configs (~/.claude.json,~/.codex/config.toml). Without it,RemoteOptions.agent_configsdefaults totrue; workers sharing an agent-config owner must use the flag on every launch--no-automationsstarts no automation scheduler or event intake: no schedule, issue event or pull-request review starts a run or session, and the run ledger is not opened. Workflow runs started through the workflow API keep executing their steps. Without the flag, automations run as beforeTUIC_PAIRING_TOKENis consumed once as the daemon session token and removed from the environment before child processes can inherit it
22.3 TLS
- Manual TLS via
services.tlsin the instance’sconfig.json(mode: "manual", plus cert and key PEM paths); the daemon port supports HTTP+HTTPS, including SSE and WSS - Missing or invalid PEM files fail before bind, with no plaintext fallback; live listener state drives TLS diagnostics
- No TLS by default — use a reverse proxy or Tailscale for production
22.4 Lifecycle
- Graceful shutdown on SIGINT/SIGTERM/SIGHUP, with a pid file removed on exit
- Binds TCP, starts background tasks (MCP session reaper, upstream health checks)
- Fails fast if port is already in use
- Optional survive timer preserves sessions across short disconnects, then exits when its configurable idle window expires
23. SSH Tunnel Manager
23.1 Supervised Tunnels
- Managed SSH processes with automatic lifecycle supervision
- Tunnel states: Starting, Connected, Reconnecting, Stopped, Error
- Readiness check: SSH must survive 500 ms and every local forward must accept TCP connections before the tunnel is considered connected (30-second limit)
- Graceful shutdown: SIGTERM with 5s grace period, then SIGKILL escalation
- SSH agent forwarding: auto-discovers
SSH_AUTH_SOCKfor key-based auth
23.2 Reconnection with Exponential Backoff
- Automatic retry on retryable failures (network down, connection refused, timeout)
- Exponential backoff: 1s base, doubling per attempt, capped at 30s
- Jitter: +/-25% per delay to prevent thundering herd
- Maximum 10 retries before stopping; counter resets on successful connection
- Non-retryable failures (auth denied, host key mismatch, port in use) stop immediately
23.3 Exit Classification
- Stderr-based pattern matching classifies SSH exit reasons (AuthFailed, HostKeyMismatch, PortInUse, ConnectionRefused, NetworkDown, Timeout, UserKilled)
- Exit code used as fallback when stderr is empty
- Classification drives retry decisions — only network-related failures are retried
23.4 Audit Logging
- SQLite database with WAL mode for concurrent-safe, high-performance event logging
- Event types: Started, Connected, Disconnected, Error, Retry, Stopped
- Query by tunnel ID (most recent N events) or by time range
- Automatic rotation: configurable retention period deletes old events
- Indexed on
tunnel_idandtimestampfor fast lookups
23.5 Profile Configuration
- TOML-based profiles with name, host, port, user, identity file, and port forwards
- Global scope:
<config_dir>/tunnels/*.toml— available across all repos - Per-repo scope:
<repo>/.tuic/tunnels/*.toml— overrides global profiles with same ID - Forward types: Local (
-L) and Remote (-R) port forwarding - Options: ServerAliveInterval (default 15s), ServerAliveCountMax (default 3), StrictHostKeyChecking (Yes/AcceptNew)
- Validation: duplicate bind ports, empty fields, port range (1-65535)
- Pre-spawn port availability check for local forwards
23.6 Tauri IPC Commands
- All tunnel management exposed as native Tauri IPC commands (
tunnels/tauri_commands.rs) — profile CRUD, start/stop, status, audit log, SSH config host parsing, SSH agent key listing - Desktop app uses IPC directly; browser mode falls back to HTTP endpoints
23.7 Auto-Connect
- Profiles with
auto_connect: truestart automatically on app launch - Hydration runs once during startup, guarded against duplicate calls
- Non-blocking: failures are logged but don’t prevent app startup
23.8 SSH Agent Detection
- Auto-detects SSH agent type from
SSH_AUTH_SOCK: 1Password, Secretive, GPG Agent, generic SSH Agent - Lists loaded keys via
ssh-add -l(fingerprint, comment, key type) - Shown in the tunnel editor for identity verification
23.9 Orphan SSH Process Cleanup
check_local_port()distinguishesPermissionDenied(privileged ports) fromAddrInUsekill_ssh_on_port()finds SSH processes holding a port vialsof, verifies withps, sends SIGTERM- Only kills confirmed
sshprocesses — never unrelated services
23.10 Statusbar Shield
- Grey shield icon when tunnel profiles exist but none are connected
- Green shield with count badge when tunnels are connected
- Clicking the shield opens the Tunnels Panel
23.11 Shutdown on Exit
TunnelManager::shutdown_all()called onRunEvent::Exit- Stops all supervisors and clears the tunnel map — no orphaned SSH processes after app close
- Shutdown kills each tunnel’s whole process group, not only the
sshchild, and waits for confirmed exit within a bound; forkedProxyCommandgrandchildren are not orphaned. A start that arrives after shutdown began is refused.
23.12 UI
- TunnelsPanel — List of tunnel profiles with status badges and start/stop controls
- TunnelEditorModal — Create and edit tunnel profiles with form validation; file browse dialog for identity file; remote host pre-populated from tunnel host when adding forwards; type-aware Local/Remote forward endpoint fields; numeric input mode for port fields
- TunnelStatusBadge — Color-coded status indicator (green=connected, blue=starting, orange=reconnecting, red=error, grey=stopped)
- Command Palette —
toggle-tunnelsaction registered for quick access
24. Remote Connection Manager
24.1 Connection Types
-
SSH — Connects via SSH tunnel to a remote
tuic-remotedaemon; auto-creates port forwarding- Fields: host, SSH port (default 22), SSH user, optional identity file, remote daemon port (default 9877), deploy policy, survive time
- The host picker probes deduplicated SSH config hosts on demand and labels shell, no-shell, auth-failed and unreachable results; free text remains valid
-
Direct — Connects to a
tuic-remotedaemon URL directly (for Tailscale, LAN, or VPN scenarios)- Fields: URL, auth username
-
Relay — Reaches a
tuic-remotedaemon that has no inbound port through a relay. Paste the bundle printed bytuic-remote --relay-pair <url>; the end-to-end secret never reaches the relay. The desktop exposes the daemon on a loopback port, so repos, sessions and terminals use the same handlers as a direct connection. A lost link shows a typed state (relay_unreachable,daemon_offline,pairing_rejected,link_lost) and reconnects as a new attachment, without replaying what was in flight -
Update & restart remote — For either connection type, compare the daemon’s
/healthbuild SHA-256 with the release asset or a matching local build, show an out-of-date badge, confirm the number of live sessions that will be lost, deploy, and verify the new hash after automatic reconnect. Direct uses an authenticated, size-limited upload; SSH uses SCP. Windows in-process replacement is explicitly unsupported. -
Auto-update remote daemons — An opt-in per-connection setting. On connect, update an out-of-date daemon only when it reports zero live PTY sessions. With live sessions, show the count and offer the manual update without a queue. Progress, success and errors appear in Remote Machines. One update owns each connection at a time: manual and automatic updates both show in-progress, and overlapping requests over IPC, HTTP, or MCP receive an error.
-
Daemon version guidance — Show the last
/health.buildversion in every retained runtime state. A semantic version older than the client warns before authentication succeeds. Host refusals explain that an outdated daemon may be responsible and recommend installing the currenttuic-remoteand restarting the service. A bare 403 carries no version; without a prior health observation, the version stays unknown. Explicit disconnect clears the observation.
24.2 Storage
- Connections persisted in
<config_dir>/connections.json - Atomic writes via temp file + rename
- Each connection has UUID, name, transport, auth username, enabled flag,
deploy(never | on_connect | installed),survive_secsandauto_update(defaults to false) - The Basic Auth password goes to the OS credential vault (
Credential::RemoteConnection), keyed by the connection UUID — never toconnections.json, never readable back, and deleted with the connection - Relay peer admission publishes ordered presence before stats writes, so simultaneous joins do not restart the pairing handshake.
- The relay pairing bundle goes to the vault (
Credential::RelayPairing), keyed by the connection UUID, never toconnections.json - Desktop-managed SSH deployments use a separate vault pairing token. It is the
daemon session token, never appears in
connections.json, and survives a desktop restart so Connect can rejoin the same daemon
24.3 Authentication
- Both desktop and
tuic-remoterequire credentials on protected TCP requests, including loopback and LAN. Origin/Host checks reject foreign websites and DNS rebinding before any handler. Local IPC retains its existing trust. tuic-remoteauthenticates every TCP request: the headless build has no loopback bypass andrun_remoteforceslan_auth_bypassoff, so an SSH tunnel does not make it local.GET /healthis the only unauthenticated route- On connect, the backend trades the vault password for the daemon’s session token (
GET /api/auth/session-token, Basic Auth) — in Rust, so the password never reaches the WebView - The token is appended as
?token=to HTTP, the terminal WebSocket and the/eventsSSE stream by the single helperwithRemoteToken(transportRuntime.ts). A WS upgrade cannot set a header andAccess-Control-Allow-Origin: *rules out credentialed cookies, so the query string is the only credential all three share - Held in memory only, never persisted: the daemon mints a new one on every restart, and a 401 from the status poll triggers one re-authentication
- Status separates Not authenticated (reachable, credentials rejected) from Error (unreachable). An unauthenticated connection starts no poll, no event bridge and routes no calls
24.4 Connect and Install
- Deploy on connect resolves the host target with
uname, downloads and caches the matching release asset, compares its SHA-256, copies only when needed, then launches it on loopback with the configured survive time - SSH tunnel, remote exec and SCP share the TUIC-owned
~/.ssh/tuic-%CControlMaster socket, so one authenticated connection serves the whole flow without exceeding Unix socket path limits. The master persists only for the life of the process that owns it, preventing a completed one-shot command from making a later supervised tunnel exit immediately - Install writes a systemd user unit and protected environment file on Linux, or a protected launchd plist on macOS. Uninstall stops and removes them
- Deployment publishes
deployingstatus with the current step. Failures retain the step and remote log tail inerror; they are never misreported as an auth failure
24.5 Remote Repositories and Terminals
- Repos can be assigned to a remote connection; sidebar shows remote badge
- Remote repository browsing starts at the remote host’s reported home directory and exposes directory permission errors without blocking manual path entry
- Terminals on remote repos route WebSocket I/O through the connection’s base URL
- A terminal launch failure is shown in its pane, and a failed grid stream shows an error toast; the remote session owner is registered before the stream attaches
- One choke point decides the machine.
resolveOwningConnection(transportRuntime.ts) reads the call’s own arguments — a session id first, then a repository path — and answers which connection owns it. Both entry points ask it:rpc()for the HTTP transport andinvoke()for the desktop IPC path, which would otherwise short-circuit straight to the local backend. A call site cannot forget to route, because it never routes - Path→connection resolution reuses
resolveRepoPathFor(deepest registered repo or linked worktree wins); session→connection goes through the terminal’srepoPath, falling back to itscwdwhile ownership reconciliation has not run yet - A command with no HTTP route (
INTENTIONALLY_UNMAPPED) stays local and warns once — routing it would replace a working call with a throw - A call on a repo whose connection is down fails with
Remote connection <id> not connected; it is never answered by the local backend canvasTerminalTransport.tstakes theconnectionIdand derives both the base URL and the token from it- Status polling runs against
/api/version, not/health: only a route behind the auth middleware can tell a working connection from a rejected one
24.6 Event Mirror
- Remote MCP toasts are retained once in the desktop Messages bell with
[connection name]before the title. Their level and requested notification sound are preserved; Open terminal resolves the peer to its live remote PTY and never selects a local tab. Unknown or closed sessions leave focus unchanged. Toasts arriving after disconnect are dropped, with no replay queue. Malformed remote titles/messages are discarded without logging their content. Deduplication includes the connection id, so identically named hosts retain separate notices. remote_mirror.rsruns one task per connected connection: it reads the daemon’sGET /sessionsand then its/eventsstream, in Rust- The stream carries no
types=filter, and every frame is repeated on the local bus under the daemon’s own event name — a client cannot tell a mirrored event from a local one, so the existing handlers raise the same badge, the same notification and the same queue gate, and a new event type crosses for free - Mirrored sessions appear in
list_active_sessionsandGET /sessionsbeside local ones, each carryingconnection_id— the only field that says which machine runs it - The stream is re-seeded after every reconnect, so a gap in the SSE cannot leave a stale badge; losing the connection announces each mirrored session closed and then drops it
- Every mirrored payload is stamped
__tuic_origin, and a frame that already carries one is dropped: a mirrored event never crosses a second hop, so two machines pointed at each other stop after one repeat instead of looping. A body that is not a JSON object cannot be stamped and is dropped for the same reason - The desktop window hears only
session-state-changedandsession-closed. Those handlers are session-scoped;session-created,ui-tab,worktree-created,worktree-removedandrepo-changedmutate local state — a phantom tab per remote session, a workspace in the local store, git work on a path this machine does not have. They still reach the local bus and/events connectrefuses a base URL whose/healthreports this process’s owninstance_id: a machine cannot mirror itself. A daemon too old to publish the field still connects
Remote host cards name DNS, refused connections, timeout, TLS, and authentication failures. A 403 Untrusted Host explains that the daemon rejected the host name and stops automatic connection retries until an explicit Connect attempt. The cause remains visible without a retry delay. Repeated identical failure states do not add warnings. When a short name cannot resolve, a matching running Tailscale peer supplies its advertised full DNS name. Retryable failures show the automatic retry delay; active attempts clear the previous failure.
25. Generators
Secure value generators accessible from the command palette (open-generators action).
25.1 Available Generators
- Password — Configurable length, character classes (uppercase, lowercase, digits, symbols)
- UUID v4 — Standard random UUID (RFC 4122)
- UUID v7 — Time-ordered UUID (RFC 9562)
- ULID — Universally unique lexicographic identifier
- CUID2 — Collision-resistant unique identifier
- JWT Secret — 256-bit random hex key
- TOTP Secret — RFC 4226 base32 secret (160-bit)
- Nano ID — URL-friendly random ID with configurable length
- Slug — adjective-noun-NNNN random slug
- Ed25519 Key Pair — Public + private key pair
25.2 Architecture
- All generation happens in the Rust backend (
generators.rs) via theringcrate for cryptographic randomness - Frontend is a modal dialog with copy-to-clipboard and regenerate actions
- Password and Nano ID have configurable options (length, character classes)
26. ACP Client for ego
Backend-only so far: TUICommander can drive an ego agent over the Agent Client Protocol (v1). No frontend surface yet.
26.1 What it does
- Launches a supervised ego child per connection and initializes it, refusing anything the agent did not advertise before a byte reaches the wire
- Durable sessions: new, list, load, resume, fork, close, delete
- Turns: prompt, cancel, per-turn config options, and the ordered stream of what the agent said, replayable from any sequence a bounded journal still holds
- The agent’s questions back — permission and elicitation — parked so a person answers them without freezing the connection, and listed so a client that was not running when they were asked still finds them
- ego’s own extensions:
_ego/pause,_ego/resume,_ego/compact, each gated on the version ego advertised
26.2 Where it is reachable
- Desktop: 23
acp_*Tauri commands (docs/api/tauri-commands.md) - Browser/PWA/remote: an identical route per command under
/acp(docs/api/http-api.md), including the same error bodies - The turn stream is a dedicated Channel on the desktop and a dedicated
WebSocket in the browser;
/eventscarries only the low-frequencyacp-noticewake signal - Text sent during a running turn uses advertised ego v1 ACP steering and enters the current query at the next provider request. Accepted steering is shown only through ego’s user-message echo and is never resent. A not-busy response uses the normal prompt path. Attachments, unavailable steering, and rejections retain the shared queue.
- Queued prompt submissions share one FIFO per ACP session across desktop and phone; queued entries are visible and removable from either view, and active-turn cancellation is shared. Queue snapshots and events omit image bytes.
26.3 Process authority
The one binary this may launch is the ego_executable setting, read at each
connect. It is not an argument of any command or route, so no request — local
or remote — can choose what the host runs. An empty setting refuses every
connect rather than failing later inside a spawn.
The optional ego_profile setting selects one profile in ego’s user
configuration at ACP launch. Empty adds no --profile argument. TUIC sends no
profile rules or allow/deny policy in session/new. A workspace’s .tuic.json
may select ego_profile; TUIC passes that name and the explicit machine selection
as _meta.ego.{profile,ceilingProfile}. Ego owns restrictive composition of mode,
sandbox and perimeter. Its returned warnings appear as AI Chat warning notices.
Missing machine selection or missing ego acknowledgement refuses attachment.
27. Terminal Progress
-
Session-only popup mute: select Mute on a completion popup, then Unmute in Terminal Progress to restore future popups. Existing and queued completion cards close, but journal entries, unread counts and blocked warning popups remain. Restart or browser reload restores popups; native notification settings do not change.
-
One append-only journal per project with each new entry attributed to its source PTY when known: entries are written once, then kept or deleted. No pause, clear, correction, revision, deduplication or Markdown export
-
Three kinds. Agents report
doneandblocked; TUICommander writesintentfrom the agent’s ownintent:marker, so an agent that never calls the tool still leaves a trail -
Compact MCP
progresstool (type,text, optionalstep) that appends and toasts in one call, stays directly callable in collapsed tool mode, and refusesintent— that kind is observed, not claimed -
An imperative reporting obligation in
initializerather than only a tool description: the descriptive version recorded zero entries across 39 repositories -
One SQLite database in the configuration directory with the project as a column. Nothing is written inside a repository, so Progress produces no repository-change event, no Git-exclude entry and no indexing pass
-
Managed workspaces resolve to their parent project, so a worktree and its repository share one history; a directory belonging to no registered project is not recorded at all
-
A dialog, not a panel: one newest-first list for the active PTY by default, a selector for other PTYs and the repository aggregate, opened with at most 100 entries, with cursor-based Load older on desktop and mobile
-
Mobile identifies the selected project once in its selector, or a subtitle when the selector is unavailable; the desktop dialog retains its subtitle
-
A last-visit divider frozen while the dialog is open, so it never moves under the line being read
-
Blocked entries in red,
intententries muted, one blocked-only filter, per-entry deletion scoped to the project -
Aggregate notification-bell count plus exactly one live toast, silent by default; Progress entries are not duplicated into MESSAGES
-
On desktop,
doneandblockedentries also send a native OS notification with the project and entry text while TUICommander is unfocused. A macOS click opens Progress at that project and terminal.intent, hand-off, and message entries remain silent; identical notices within five seconds are coalesced -
The notification bell always offers Terminal Progress, including with zero unread updates;
Cmd/Ctrl+Shift+Pand the command palette open the same dialog -
progress_trackinggate: a global setting ANDed with a per-agent override. Global off removes the tool from every agent’s tool list
Remote MCP session ownership and peer mail
Desktop MCP discovers configured remote PTYs and peers, routes output and semantic submit to the owning daemon, and delivers connection-qualified peer mail through an authenticated desktop hub. Local mail remains independent of the hub.
Answers-only View
Use Toggle answers-only view (Cmd+Alt+R on macOS) to read selectable marked answers and their tracked prompts. Turns without marked answers are omitted. Output before the first tracked prompt remains available as a prompt-less turn, from the retained history base. If no answers qualify, the view shows a one-line notice. Toggle the view again to return to the terminal.
Private secret forms
Controllers can also put write-only task-scoped values with a TTL and select the scope at agent spawn. Values enter only the child environment. TTL stops new injection; existing session masks remain until teardown. PTY output is sanitized before HTTP, WS, history, watchers and diagnostic captures (#2319-02f6).
The private window offers a selectable full phone-entry URL, Copy URL, a browser link and QR code using the Remote Mobile address policy. Disabled remote access shows setup guidance. SSO HTTP(S) display URLs share the selectable link, copy and system-browser actions; other display values stay plain text. Account-vault entry remains native-only.
The secret MCP tool opens a separate native form for requested sensitive
fields and returns names/status only. Approved argv commands receive values in
the child environment; pipe output is masked for exact and common encoded
values, including wraps. User consent binds exact argv, names
and directory. Values and templates live only until exit. One-time nonce links
support browser entry on the existing application origin and transport. Use
HTTPS for phone entry. TUIC inspection and capture calls are gated while a form
is open; toasts and remote upstreams stay available. See
Private secret forms for limits and consent.
Workflow safety includes owned check-tree teardown, credential-derived operator authority, and receipt-based plan completion that reopens after canonical ref movement.
Workflow and dependency writes probe Git before opening write transactions, then reject concurrent run or story revision changes. Canonical ref changes invalidate integration evidence on the next read.
Stored terminal marker coordinates
Command boundaries and user prompt ticks retain their physical row after capped scrollback evicts older output. Answers-only history uses the same stable prompt coordinates.
Headless Telegram channel
Without an explicit registration, allowlisted text reaches the latest-connected
live AI Chat peer. Explicit registration always has priority over that fallback.
Any MCP-bound TUIC agent opts in with telegram register; one volatile
registration replaces the previous agent with one native notice. It ends on
MCP session end, PTY close, foreground-agent exit or daemon restart.
Allowlisted private text arrives as native peer mail. Without an agent the bot
replies “No agent is listening. Ask an agent in TUICommander to register for Telegram.” and drops the text; strangers stay silent.
The registered agent can stream concise activity, send exact replies and offer
opaque buttons. Any live MCP-bound agent can send notifications without registering or taking inbound ownership. Non-owner sends carry server-derived [session name] [alias: TUIC address] on every chunk (terminal alias, or stable peer ID without a terminal), allow no buttons, and are limited to one send per 30 seconds per peer. Telegram Replies to that prefix reach the unique live exact-name sender; other replies and new messages use the inbound owner, then live AI Chat. Unavailable named targets retain their name, address, quoted original and reply in fallback mail; the bot names the receiving session, or the unavailable target when nobody can receive it. Proactive sends use one allowlisted destination. Only the polling
cursor persists; live mint deployment remains pending. See
Telegram channel.
Telegram Settings
Mobile Settings does not offer Telegram setup.
Desktop Settings → Telegram provides token replacement/getMe check, one-use ten-minute pairing or explicit private-chat IDs, read-only registered-agent status, enable and safe status. Desktop and tuic-remote share one process-held polling lock; the standby takes over when the owner exits. Settings identifies the connected owner and enables pairing only while connected. Tokens stay in owner-only private files and never return to the UI.
Connected daemon notices carry their host identity. MCP confirmation responses and ACP permission/elicitation answers return to that daemon; disconnected questions disappear without changing local connections. AI Chat shows remote questions separately, with their ACP connection identity. Remote GitHub transitions fetch PR data from the repository owner, notify once, and do not run local repository automation. GitHub polling also works on the headless daemon. MCP upstream health refreshes use a separate host snapshot rather than this machine’s editable configuration.
- AI Chat mobile push: pending questions and ego notice cards share the 30-second per-conversation limit.
The graph runtime foundation now persists and replays pinned activations, serial predecessor history, edge decisions and repair counters. Executable validation requires Pause resume targets and deterministic final checks. Fork/all-Join schema and execution wait for slice G; scheduling and designer controls for these settings remain in development. Pause resolution respects uncertain-effect and pending-input fences, and serial history is bounded. Old pre-contract runs support inspect/cancel only.
Detached AI Chat owns its push-to-talk lifecycle and captured composer. Native Fn starts in the focused supported window; releasing it after a focus change still completes that recording. AI Chat dictation remains a draft for review.
AI Chat offers Fork beside a reply when ego advertises message-point forks. The new tab keeps history through that reply’s successful completed turn; the parent can keep running. During an active turn, Fork conversation and /fork use the last successful completed turn observed on the connection. No verified cutoff means refusal, never a partial-tip fallback.
Forked AI Chat tabs label inherited history. A separator marks where the child’s own conversation begins, including after loading saved history.
The AI Chat conversation picker groups fork and compaction descendants beneath their ancestors. Deleted immediate parents remain visible as disabled “Deleted conversation” rows.
Closed refusal turns show one plain-text card with the agent’s existing ACP refusal text. A refusal without text shows a generic refusal message.
Browser HTML and Markdown previews load local images only from open repositories and their linked worktrees, through the authenticated repository image route. Images outside those roots show “Image unavailable: outside open repositories.” Desktop asset loading is unchanged.
Native stories expose qa for work that waits on manual checks. A criterion starts with [MANUAL], or is marked through set_criterion_manual {index,manual}. Active work automatically enters QA when all unchecked criteria are manual; submit_qa explicitly requests that state. reject_qa returns QA to In progress; approve requires every criterion checked. QA keeps plans Active and dependencies blocked. All transitions retain expected-revision checks. See the native stories guide.
Reversible native record archival
In Plans and Stories, Archive plan and Archive story move the selected record out of the default list. Use Archived plans or Archived stories to select archived records, then choose Restore plan or Restore story. The toggles are independent, so archived stories remain reachable inside active plans. Archived detail stays readable; restore before starting work. Backend refusal messages remain visible when a claim or active run owns the record.
All native story transports share archive_story, unarchive_story, archive_plan, and unarchive_plan. Story actions take story_id; plan actions take plan_id. Each requires expected_revision and returns the updated record with its incremented revision and archived flag. Stale revisions fail without a write. Archival preserves status, criteria, dependencies, and child archive flags; it never deletes records or cascades to children.
list_plans and list_stories default to archived: false. Set archived: true to select archived records. The story filter combines with the other filters and is bound into pagination cursors. Direct reads remain available. Default plan views and workflow dispatch omit archived stories; archived plans and stories cannot start manual or workflow work. Restore the parent plan before starting its stories.
Both archive and restore refuse claimed stories and plans that contain a claimed story. Story archival also refuses any prerequisite that is not Done while an open dependent references it, including inside an archived plan. The refusal lists the dependent IDs and leaves the record and history unchanged. WontFix does not satisfy dependencies. Done prerequisites and unresolved stories with only closed dependents remain archivable. Adding a dependency to an archived unresolved story requires restoring it first; both dependency editors enforce this rule. Whole-plan archival does not change dependency readiness. An active or paused plan-root workflow owns the plan’s story set. A story-root workflow owns its target and execution stories, not unrelated siblings. Cleanup of an owned story or its parent plan is refused until the run ends. The workflow writer lock remains held through the archive transaction, so a concurrent run cannot start between the ownership check and the write.
story_archive_history (story_id) and plan_archive_history (plan_id) return {type:"archive_history",value:[{revision,archived,actor}]} in revision order. Events commit atomically with the record and retain caller provenance. Existing status transition history remains separate. Transition history uses readable command labels and 1-based criterion numbers, with the current criterion text when available. Actors show a live session name or an eight-character session ID; hover the actor to see the complete session ID. The current history API does not return timestamps. Consecutive archive-only revisions preserve accepted-work integration receipts; a work change or a moved canonical Git ref still invalidates them. Example: tuic story '{"action":"archive_story","story_id":"<id>","expected_revision":1}' --project /absolute/project.
Workflow graph slice C: the owning daemon executes pinned serial Agent/Judge/Loop/Pause/Notify/Join nodes through the existing RunStore ledger and managed launch fences. Named sol/sonnet profiles are required. New unsupported Gate and plan node publications are refused visibly. Manual pauses suspend active duration. Slice F supplies public story graph starts and history controls; D/E add independent approval and plan dispatch; graph completion alone never closes a native story.
Workflow story policy (slice D)
The daemon runs pinned deterministic checks before accepting an independent reviewer approval. Native approval history preserves the reviewer actor and revision; the run retains the reviewed artifact and check receipts. A workflow implementer cannot approve its story after exit or claim release. Integration remains an explicit operator action.
Workflow plan dispatch (slice E)
The owning daemon executes pinned plan coordinator and Create Stories visits through the existing proposal effects. Disjoint story children share a bounded project wave; overlapping or unknown scopes wait. A dependency starts only after its accepted revision has a current explicit Git integration receipt. Done alone and WontFix never release it. Approved children wait for an operator merge. The final plan Judge runs the pinned canonical checks and binds verification to the current plan fingerprint. Failed checks route through a bounded replan with a fresh coordinator attempt. Public start/history controls use the same graph entry point; parallel graph branches follow in slice G.
-
Run incidents and next steps: Plans and Stories run history connects recorded workflow and bound-agent failure/input outcomes to their cause, identifiers and manual next action. Session/task evidence is transient; no automatic incident retry.
-
Conversation launch options: AI Chat can give one conversation its own ego profile, executable and workspace, persisted with a dedicated peer identity. Creation and reopen are also available over HTTP.
-
Inbox read audit: MCP agent inbox reads log caller, owner and message ids at INFO without mail bodies.
Terminal stream reconnect notices identify the session and show the transport’s current attempt (up to 10). A received grid frame or confirmed empty replay removes only that stream notice; socket opening alone does not. Exhausted retries leave a persistent failure notice.
In rich mode, sessions idle for more than two hours fold into an expandable count. Backend activity timestamps determine age; busy sessions, awaiting input, unread output, selected rows and parents of visible children stay visible. Expanding preserves row order. Compact mode does not fold idle sessions.
Rich working agent rows reserve two clamped intent lines. Idle, awaiting-input and error rows stay on one line with status dots; their full intent, task or prompt remains in the tooltip. Compact rows keep their one-line layout.
Rich navigation keeps compact typography and padding. Branch identity and facts share one line, with names truncated and full PR/lifecycle facts in tooltips. Repository metadata disappears when PR and worktree counts are both zero. Header controls use compact sizing to protect repo names. Returned subagents fold into an expandable count independently of running work.
In rich mode, ungrouped repositories with open terminals appear first, followed by an Idle section. Manual order is preserved inside each section. Idle headers start on one line; disclosure reveals their branches without changing activity or saved order. Headers count agents in the backend working state, independently of open-terminal membership.
Rich active/idle sections also apply independently inside each existing repository group. Group membership and group ordering remain intact; active-only filtering hides idle-only groups and empty Idle headings.
Rich merged linked worktrees with no sessions and verified lifecycle facts use a one-line summary: Merged, N uncommitted, Clean up. Live, unmerged, or unknown worktrees retain full rows. Clean up enters the existing lifecycle preflight and confirmation workflow; cancellation preserves the worktree.
Rich parent terminal rows show N agents in each other repository containing live children. Clicking reveals the child group, repository and workspace, then selects a child through existing terminal navigation. Session placement and same-branch nesting stay intact; closed children disappear from summaries.
Browser Add Repository provides a server-side directory picker using the existing filesystem routes. Root HTML navigation offers form login; touch-capable iPad Safari selects the mobile interface even with its desktop Mac user agent. API authentication is unchanged.
Automation Once schedules (Rust foundation)
Definitions can schedule one wall-clock date-time in an IANA zone. Rust rejects past instants on creation and spring gaps, resolves folds to the earlier instant, and keeps consumed Once definitions for inspection. The backend supplies one preview instant and completed schedule state. Public automation controls arrive with the scheduler API and dialog. The shared Rust runtime now admits Once schedules on desktop and headless hosts, reserves before dispatch and records precheck decisions and launch pointers. Precheck stdout never changes the literal prompt. Public execution controls and completion/maximum-duration integration remain pending.
Lean one-shot automation creation
One-shot automation creation accepts name, prompt, in_secs and an explicit
saved run_config from a bound agent. Host-resolved repository defaults and
returned next-run/local fire times remove clock, list and get lookups. Identical
caller requests reuse the first saved occurrence; exact UTC storage preserves
elapsed delays across DST. Unknown caller profile identity fails explicitly.
Automation profile repair
Unresolved automation profiles appear in the desktop Messages bell on startup and after saved profile changes. Failed-run notices include their reason, independently of creator mail. Runs groups repeated identical failures with a count and a Fix action that focuses the current definition’s saved-profile picker.
Automations dialog (backend integration pending)
Machine-local scheduled-run editor with search, backend cadence/zone preview, prechecks, workspace and duration controls, pause/resume, Run now, confirmed delete and recent status history. Open Automations from the command palette. Step 8 API integration is required before use; see Automations.
The Automations palette action also matches scheduler and schedule. Automations cards show the repository name (full path on hover), common schedules in plain language, secondary cron and the backend next run in its named timezone. Definitions and Runs use keyboard tabs (Left/Right, Home/End). The dialog selects the first automation on open unless a specific definition, run or new draft is already requested. Refresh keeps unsaved edits.
Automation transport availability
Automations definition management, pause/resume, schedule previews/presets, retained run history and UTC aggregates are available through matching Tauri IPC and HTTP on desktop/headless hosts. Browser/PWA uses the same command mapping. Run Now uses the addressed machine’s runtime owner and supports paused Once and cron schedules; a due cron occurrence dispatches once. Full run replies retain output, workspace and task/session evidence.
Automation execution now reconciles task, PTY and progress completion evidence, retains bounded final output, and expires active runs at their persisted deadline. If stopping one run fails, it stays active while other runs still enforce their deadlines. Reconciliation reports the stop errors after processing those runs. Blocked runs remain active; idle alone does not prove success. Rust restart required.
Event-run details retain durable publication outcomes and exact pre-POST intent. Restart and lost-response reconciliation use a repository/head/base PR lookup; uncertain writes are never automatically repeated. Filtered, duplicate and capacity decisions retain coalesced skipped history without consuming admission. The outcome includes PR/comment URL slots, decision and failure/refusal reason; comment publication and machine-enforced review/check gating are not added.
Automation needs-you and failure notices use durable per-run/status/channel claims, existing notification preferences, and canonical saved-run/owning-session bell navigation. Unknown and interrupted outcomes remain history, not success. Notice navigation edits only the current definition; deleted definitions retain read-only run details.
The Automations editor exposes Include precheck stdout in the agent prompt,
off by default, using the same saved definition flag (#1624-c5f5).
Automation precheck context (#1631-45bf): definitions can opt in with
precheck.inject_output: true (default false). Proceeding checks prefix the
literal prompt with delimited, escaped untrusted stdout capped at 16 KiB;
truncation is marked and stderr is excluded. Empty output and manual bypasses
inject nothing. The run ledger records precheck_context: {injected, bytes} for
the prepared launch prompt, counting escaped stdout bytes before framing/marker.
Automation runs view
The Automations Runs view shows backend 24h/7d counts, paginated history, distinct needs-you/unknown/interrupted states, and saved output after definition deletion. New PTY run output is plain text with terminal escapes removed before retaining its newest UTF-8-safe 256 KiB; existing snapshots are unchanged. View run focuses only an available terminal on the owning daemon; otherwise it shows the saved report and workspace details without launching a replacement.
Reusable setting fields
Core form controls support account selection with a host-owned Add action, stable-ID editable rows, checkbox multiselect, read-only status tones and action buttons. They are controlled rendering components for settings and work-item forms; adding them does not add a settings page or a plugin manifest API.
Shared provider accounts
Core account/site list, add, Test and remove use one registry with write-only credential storage. GitHub metadata/tokens migrate without changing account IDs or repo bindings; core retains the GitHub provider and ambient auth chain. Generic provider descriptors allow token/basic verification for plugin providers. Native Settings secret entry and plugin-manifest/authenticated-request wiring are separate integration steps.
Account credential entry uses a private native form with one-time nonce and window identity checks. Settings sends account metadata only and receives status only; Enterprise PATs go directly to the account vault after verification. Account forms have no browser/mobile entry capability.
Tasks contract foundation
Provider-neutral Rust DTOs and generated TypeScript cover work-item queries, fields, comments, actions and boards. A deterministic local provider supports development; visible Tasks views and remote providers are separate integration work. See plugin guide.
Tasks detail component
Core provides a generic work-item detail component with descriptor-driven field editors, sanitized descriptions and comments, review threads and summaries, cursor pagination, add comment, and declared status actions with rollback. Visible details refresh every 60 seconds and preserve expanded sections. The Tasks shell and provider registration integrate this component separately.
Saved automation profiles (#2015-bdb3): create/update/re-enable and the runner share named-profile resolution. Invalid list rows expose a repair error with no next run. Failed agent-created runs notify their creator inbox once, including failures before spawn.
Automation agent surface (#1630-cbfa, #1621-5dce): MCP automations and
tuic automations share the HTTP/IPC action parser, definition results, schedule
previews, run history, summaries and Run Now runtime. Enabled-only updates and
Once definitions work identically; MCP creation retains host-bound provenance.
GitHub backend: paginated line review threads and replies, resolve/unresolve, and draft review submission pinned to the reviewed head are available through IPC and HTTP. The PR Files tab draws them on the diff lines: outdated threads are listed above their file, pending comments are added from the line gutter, and Submit review is refused once the PR head moves.
GitHub backend: failed-job reruns, auto-merge enable/disable, merge queue state/entry/removal and queue-aware merge are available over IPC and HTTP. Request changes requires review text.
Tasks board component
The core Tasks board component renders provider-declared columns and virtualized lanes. Each lane shows its loaded count and a More control while the provider has another board page. More loads the next page across all lanes, retaining earlier cards. Cards show assignee names and label chips, and support drag and drop and a keyboard-accessible Move button menu. Pending moves cannot be repeated; rejected actions restore the card and show the error. This component is available to the Tasks host; provider registration and the Tasks navigation surface determine where it is shown.
GitHub Work adapter — runtime integration pending
The github-work provider adapter supports account-scoped qualifier search, issue/PR identity, detail, paged comments and review summaries, create metadata, duplicate candidates, close reasons and host start-work intents. It is tested against recorded GitHub reads. Authenticated host wiring, lifecycle, manifest and catalog registration are present. The runtime binds account-scoped core review threads and PR actions; core retains reviewed-head and merge-queue policy. Recorded public Projects reads cover move and clear request contracts without live writes. Desktop load and live mutation verification remain pending.
Tasks create component
Core provides a generic work-item create form. The provider declares the item types and the fields of each type; the form uses the shared setting controls, blocks Create until the required fields of the current type are set, and opens the created item. The Tasks shell integrates this component separately.
Automation worktree cleanup (#1623-8b2a): Automation runs retain automation/run IDs and the exact created workspace path and ID in their saved snapshot, including after definition deletion. Worktree cleanup is explicit and limited to final runs. The backend resolves the saved identity and rechecks shared Git integration/archive proof, dirt, submodule commits and live sessions; it never forces removal or closes sessions. Shared automation_action actions worktree_preview and cleanup_worktree accept a saved run id on IPC, HTTP, MCP and CLI.
Built-in automation templates
New automation drafts offer weekday repository audit, release readiness, daily change review and hourly maintenance review templates. Enter the repository and run config, then select Apply template. Rust supplies the literal prompt, cadence, limits and zone (the backend host’s local IANA zone unless selected). Review and edit the draft, then select Save. Templates start paused; applying one never persists a definition or starts a run. Resume is a separate action. Templates use the existing checkout with no precheck and do not change agent permissions. Recurring cadence previews retain the existing runtime limitations.
- Finished worktree recycling: explicit completion permits safe reuse with a new branch and path while ignored build artifacts remain intact. Fresh allocations stay reserved.
History-anchored viewport scrolling
Terminal gestures hold the requested history row even when output arrives before the backend applies the scroll. If capped scrollback evicts that row, the viewport clamps to the oldest retained row.
GitHub OAuth requests repo project for Projects v2 reads and writes. Existing read-only logins get re-login guidance; Projects write denials leave board cards and repository actions available.
Internal repository settings owners
The typed settings service supports repository defaults and per-repository .tuic.json targets. One registered owner resolves only existing repository registrations; patches preserve sibling fields and check revisions under the file lock. Transport publication remains pending. Registration/group configuration remains an accepted inventory gap until its owner has a typed schema (#1825-4566).
GitHub settings backend: an internal typed owner adapter supports device login, verified Enterprise PAT accounts, labels, write-only credentials and revision-checked repository bindings. Shared settings transport publication is a separate step.
Ego settings owner service (#1775-330c)
The internal settings catalogue includes Ego managed model/provider selection,
roots, network and executable paths. Conditional atomic batches use Ego owner
revisions to reject concurrent external edits. Base-only provider headers and
credential commands use write-only actions; reads expose presence only.
Configurations remain profile/workspace scoped; absent
values and explicit empty roots stay distinct. Stored credentials are presence-only.
Launch profile/workspace stay in the app store; trusted executable writes await
the confirmation step. No new public settings transport is registered
by this adapter. Model changes from the existing Providers UI now use the same
configured profile and workspace as perimeter changes.
Tasks setup preserves saved account keys outside the form, including Enterprise hosts and login. Label choices use matching provider field IDs; assignee username filters stay text when create-form IDs differ. Display-only roadmap dates do not appear in list filters or grouping.
Tasks view memory
Tasks remembers the selected source per repository and List, Board or Roadmap plus list grouping, sort, preset, search and filters per repository/provider/account. The existing uiStore saves these preferences through load_ui_prefs and save_ui_prefs in ui-prefs.json. Results and page cursors remain transient. A rejected saved sort retries the last accepted order, then the provider default. Other query failures keep their error and Retry control. An unsaved scope keeps the normal defaults.
Tasks start-work briefs
Tasks Start work reads .tuic-start-work.md in the active repository root,
next to .tuic.json, with {{key}}, {{url}} and {{title}} placeholders.
Without the file, the existing key/title/body brief remains. Item control
characters are stripped before substitution; delivery keeps its 12,000-character
cap and untrusted-content wrapper. Desktop and browser use the same Rust builder.
Terminal Compose image attachments
Paste an image, drop PNG/JPEG/WebP/GIF files on Compose, or select several with Attach images beside Send. Each image is saved through the shared paste helper and inserted as [image: <path>] in gesture order. Drops use the pointer position; the picker replaces the selection. Unsupported files and save failures show a visible error. Native desktop drops are claimed by the mounted Compose editor before terminal and tab routing.
Tasks MCP access
The existing MCP repo tool reads linked work items or explicit references, URLs and exact provider keys, including paged comments. Provider content is enclosed in an untrusted-content block. Optional comments and workflow transitions use the same provider actions; mcp_work_item_writes defaults to false. A frontend with the provider loaded is required (#1854-4960).
MCP call audit view (#2136-dc79): Settings > MCP > Call audit lists the body-free GET /mcp/audit rows behind the mcp_call_audit_enabled setting (off in release, on in debug). Off records nothing. Effects distinguish read-only, completed, failed, not-started and uncertain dispatch; known operation and target names replace opaque metadata (#2299-07d3).
MCP usage rollup (#2808-5998): Settings > MCP > Usage keeps daily counts per client kind, role, tool and action (calls, errors, rejected arguments, reply size, catalogue bytes served) for 90 days and shows the last 7 days per role. On by default; the switch stops counting. No arguments, replies or names are stored.
Background tray and menu-bar icon
Tray and menu-bar icon: Settings > General offers Always, Only in background (default), or Never. The native menu shows live working/awaiting agent counts, Show TUICommander and Quit. An attention mark appears for awaiting agents while hidden and clears on Show. Left-click shows the app on macOS and Windows; Linux uses the menu. Never, a failed tray build, or a Linux desktop without a StatusNotifier host falls back to minimizing without clearing terminal visibility. A native notice appears on the first background entry of each app run.
Tasks list controls use provider-declared field sort, group and filter capabilities. A rejected selection restores the last successful sort, group and filter controls, keeps attempted search text for Retry, and shows the provider reason.
Tasks small-list mode (#1851-7ade): when the provider reports at most 1,000 matches, Tasks collects the complete search/preset scope and uses the Rust projection for all-field sort, group and filter. A changed total, missing rows or a nonterminal cursor cannot establish completeness. Unknown totals and larger lists keep provider-supported server controls. No extra cache or persisted state is added.
GitHub Tasks boards (#1846-55d7): the optional provider listBoards(signal) port discovers the current user Projects v2 when Board opens. The existing picker selects a project; paging preserves project identities. Missing read:project stays visible instead of claiming there are no boards. Providers without discovery retain their configured boards. Discovery does not persist selections or write to GitHub.
Background WebView unload
background.webview_unload_minutes defaults to 10 awake minutes; 0 keeps the hidden WebViews loaded. Changing it takes effect while hidden. Unload waits for a saved snapshot and defers during dictation or a close dialog. Rust PTYs, HTTP/MCP, Automations and remote terminal subscriptions continue. JavaScript plugins (including cache-keepalive, claude-wakeup and at-capacity-retry), sounds and updater checks pause until Show.
Show recreates the main window from Tauri configuration, restores window geometry through the window-state plugin and reconnects the saved tabs, split layout and live sessions created while unloaded. Suspended tabs remain suspended. The updater checks again when the frontend starts. Quit confirmation uses a native dialog while unloaded. ui MCP actions return {"error":"webview_unloaded"} immediately in that state. background-mode-changed is dual-emitted to desktop and SSE with {state:"hidden"|"unloaded"|"visible"}.
B0 measured WebContent exiting and about 1,090 MB released from a synthetic 1 GiB allocation on macOS. Actual TUIC workload savings, Windows and Linux are unmeasured. GPU and Networking processes may remain.
Design Mode captures accept per-call format (webp by default or png),
quality (WebP 1–100, default 25) and optional max_long_edge (positive pixels,
downsize only). Use WebP for text/layout, quality 50+ for small glyphs/icons, or
PNG for pixel-exact detail. Responses report path, format, quality (null for PNG),
bytes and media type; MCP sends a correctly typed image block. Token cost follows
pixel dimensions, not file format or bytes (Claude: about 1,296 tokens per
megapixel, capped at 1,568 standard / 4,784 high-res). HTTP/IPC use the same
screenshot fields in args; no user setting is added.
Design Mode agent control: immediate native-port navigate, reload, screenshot, page-error read and explicitly host-granted MAIN-world eval. The extension sidebar shows the last fifty agent actions. Screenshots require the reviewed tab to be visible.
Plugin settings pages
Loaded plugins with registered settings appear in a separate Settings > Plugin settings group. Navigation marks each entry as Plugin and exposes its source ID; the native editor shows the same ID. Catalogue loading never hides the Settings shell, and pending value reads use a local loading state. Search includes their catalogue field labels. Unloading removes the page and search entries. Reads, revision-checked edits, resets and secret set/unset status use the scoped Rust settings service; the UI owns no second configuration store.
Tasks notifications
Settings → Notifications → Tasks has OS notifications for Tasks, off by default and independent of the existing PR notification preference. Failed checks on a linked GitHub PR use the existing PR notice once and name the linked Tasks item. Click the notice to open the PR.
Use Follow task in an item detail to follow comments locally; use Unfollow task to stop. Follow state and the policy are saved in the existing Tasks UI preferences. A first observation establishes a silent baseline. Existing visible detail refreshes (including its 60-second refresh) and provider-bridge detail reads compare authoritative comments; there is no extra background poller. Your own comment action advances the baseline silently. Native notices recheck the Tasks policy after permission is granted and retain the existing background-window policy; browser clients do not send native OS notices.
GitHub provides a full normal-comment count, so an increase is detected even beyond the first page. Jira and GitLab provide paged comment entries: newly observed comments notify when their creation time is newer than the prior baseline, or when a previously unseen comment ID shares its latest timestamp. Unloaded pages, unseen review sources and items that are not refreshed cannot produce a notice. Editing a comment or loading older history does not notify. No Linear provider is shipped, so it is not covered.
Suspended tabs wake on open, submit or peer mail through the same Rust transition. Concurrent wakes share one replacement PTY and retain the TUIC peer identity. A failed wake leaves the suspended tab available for retry.
Automatic idle-agent hibernation
The backend checks unattended top-level agent tabs every five seconds. agents.hibernate_idle_minutes defaults to 60 awake minutes; zero disables the sweep. agents.hibernate_scope defaults to background_only; always also permits foreground hibernation. Both machine-owned controls are in Settings → Agents (Expert Mode).
Hibernation requires an idle agent and a verified resume session in its saved profile. Plain shells and agents without a verifiable resume session stay live. Unread peer mail, pending commands or background work, awaiting input, attached readers, keep-open tabs and open automation runs prevent hibernation. Managed children retain their separate idle-close policy. Sleep gaps longer than 30 seconds do not advance the idle clock.
The normal Rust suspension path persists reason: "idle_hibernate" before ending the PTY. Opening the tab, submitting input or sending peer mail uses the shared wake path. Storage or resume-verification failures leave the live session intact.
Settings transport cutover (#1787-4778)
The generated settings contract replaces the legacy MCP config tool and also serves HTTP and IPC. Trusted UI opt-in is independent of legacy config enablement. The resolved inventory enables owner transactions and typed workflows, including connection credential reconciliation scoped to one runtime. The inventory gate remains enforced for future additions.
Plugin HTTP requests accept AbortSignal cancellation through both desktop IPC and HTTP, including response body reads. Jira URL resolution forwards cancellation to every detail request.
Jira and GitLab expose a default project in their schema-driven plugin settings page. Jira uses a project ID; GitLab accepts a project path or ID. A project saved for an account in Tasks setup takes precedence. The default applies after the plugin reloads; empty means no fallback project. Account bindings remain in data/work-items.json, while these defaults use the settings service in data/config.json.
Mobile terminal streaming restarts on visibility return after retry exhaustion retires its subscription; confirmed ended sessions do not reopen (#2422-a267).
Mobile outage recovery: failed navigation shows a self-contained cached connection test with the server address, last error, manual retry and automatic backoff. It reopens the original address when the server returns. The running app shows a connection-test card for API or terminal-stream outages; bounded session reads and automatic recovery refresh failed view loads while mounted views preserve drafts (#1930-f4c2, #2294-078f).
Settings owner validation covers typed shortcut records and bounded pane geometry. Geometry references existing groups; runtime tab membership and focus are not configurable settings (#1914-cdf6).
Internal settings choice discovery
Owner-backed dynamic choices support cache-only describe and explicit refresh. Notification output devices retain their UI option objects and distinguish unavailable discovery from successful empty results (#1908-c327).
Agent model settings support typed model edits without starting a CLI. Explicit
choice refresh probes only the addressed Claude run config with --help, using
its command and environment. Published aliases are suggestions, not account
entitlement or an exhaustive model list. Other CLIs and failed probes report
unavailable choices; typed edits remain supported. Describe never probes. Model
edits preserve sibling configs and the default selection and apply next session
(#1910-451e).
App settings share bundled font and IDE option metadata between Rust and the UI. Theme/installed-IDE discovery uses explicit owner refresh; describe never launches discovery (#1915-d77f).
Voice owner discovery (#1909-0d24)
Internal voice settings refresh resolves devices, model state, installed voices and language-filtered Edge voices through existing owners. Describe is cache-only; typed asset actions retain existing owner validation and runtime effects. Public settings transport cutover remains separate.
AI Chat replies use plain chat prose without the terminal answer rail. Literal Markdown blockquotes keep their normal quote style.
AI Chat can pin repository context per conversation. A separate composer control shows Pinned repository or Follow repository and the configured repository name color; draft parking stays independent.
Settings layout foundation
Settings shares a responsive shell (1136px maximum, 80vh height) and reusable theme-aware cards, rows, status summaries and scoped action presentation across global, plugin and repository pages. Catalogue search preserves lazy page loading and reveals expert matches without changing Expert Mode. Section links retain their page mappings; plugin loading, read failures and unloads remain local to their scoped editors. Existing settings ownership and save behavior are unchanged.
Pocket spoken replies keep a missing selected voice visible and downloadable; while its download is absent, a ready bundle speaks with its own language default.
Terminal ego provider recovery
Native terminal ego can report provider recovery with phase, attempt and next
attempt time. Tabs show recovering; the status bar includes a countdown and
Force retry. Managed parents receive recovery entry/exit notices. MCP session
force_retry submits /retry once to the recovering ego terminal.
Telegram Settings includes a newest-first, process-local log of the last 20 inbound/outbound events with safe outcomes and 60-character redacted previews. This memory-only log clears on restart and does not include draft refresh traffic.
Telegram request streaming (1959-162a)
Telegram replies now use TUIC-driven receipt (👀), working (👨💻), waiting (🤔), answered (👍) and failed (👎) reactions. An ephemeral native draft shows Italian status lines or unapproved agent previews; it refreshes while work continues and the final reply replaces it. Acknowledgement of work requires inbox Read and a new recipient turn. PTY intent/activity and AI Chat assistant chunks share request correlation; finish remains authoritative after draft retirement. Telegram-mail-woken AI Chat turns automatically send their settled assistant text if finish has not answered. Queue and no-reply notices occur at ten minutes and sixty seconds after Read respectively. Restart keeps no request history. Phone rendering requires a live check after the backend restart.
Terminal text fidelity: soft-wrap rows preserve original spaces in session text, mobile CLI output, copied selections and ego question labels; explicit hard breaks remain. Chat uses its separate transcript source.
Settings MCP live refresh
Durable settings-facade writes publish a value-free process-local generation to desktop and SSE clients. Open settings consumers reread affected sections without saving; dirty edits survive, stale reads are discarded, and reconnect refetches snapshots. Vault-only credential writes and persisted apply failures also invalidate readers. Remote notices remain scoped to their owning connection.
Catalogue-backed Settings inspection
Settings includes a typed All settings expert inspector with explicit owner/path binding, revision-checked single-field edits, dirty-draft preservation and human confirmation recovery. Native controls expose catalogue identities, shared enums use owner metadata and search includes inspector descriptors. General exposes index-memory, attachment-size and WebView-unload resource limits. Per-ID ledgers document separate domain/legacy/read-only controls; CircleCI/corrections ownership and transient PR-filter persistence remain follow-ups.
Assisted Settings startup: published boundary
Startup workflow documentation covers GitHub device/Enterprise actions, read-only credential-source provenance and configured Ego settings/readback, with explicit owner revisions, human confirmation and partial-persistence recovery. Typed account enumeration and configured Ego interactive login start/status are published. Login returns a human-operated terminal and bounded handle; closed and expired handles never imply authentication success. Complete schema-only onboarding remains subject to integration verification.
CircleCI Settings owner (#1991-bd88)
Settings discovery includes the write-only machine setting circleci.token.
Typed set_token and clear_token actions share the existing token owner across
MCP, IPC and HTTP. Readback reports stored presence only (set, unset,
unavailable), never a secret. Git & GitHub keeps its effective-source status;
removing a stored token leaves environment and CircleCI CLI fallbacks unchanged.
Generated launch playbook
Settings > Agents selects generated Markers, Working with the user, Waiting, Git/worktrees, Process safety and child-only Children modules. Global and per-agent additions append after the modules; an explicit all-off switch suppresses the entire prompt. Effective previews use the selected machine. Exact old default copies migrate away without duplication. When mdkb is installed, the launch text also carries the fixed MDKB code-search rule.
Durable managed-child launch
- MCP
agent launch, HTTPPOST /agents/launch, and IPCmanaged_agent_launchshare an idempotent transaction. - Select/create a workspace, pin a stable name, link a registered parent, and choose keep-open in one request.
- Durable launch handles survive lost replies; conflicting retries and uncertain partial creation fail explicitly without a second PTY or fallback checkout.
- Receipts separate creation, prompt submission, native readiness, blocked state and warm-artifact status.
Bounded MCP reads
Session and peer inventories support scoped lookup and compact=true, including
explicit unknown state, activity age and omitted fields. Inbox and terminal
output support opt-in UTF-8 byte-budget pages with immutable, lossless
continuations. The envelope counts toward the budget; the inbox cursor advances
only after the final chunk. HTTP MCP-compatible output shares the same boundary.
Opt-in frame workload evidence
The debug frame recorder retains bounded real grid arrivals and immutable paint inputs, dumps on a recovered freeze/long paint or on demand, and replays production grid painting with per-frame timings. It is off by default, requires perfDebug, and stores sensitive terminal content separately from the numeric journal. See Persistent stall evidence. The synthetic smoke fixture is not a real-stall RED.
Dictation correction dictionaries are discoverable and editable through the shared Settings owner as stable heard-text keys. Revision-checked edits reuse TextCorrector persistence and refresh the runtime without microphone access (#1992-d4fa).
MCP discovery can include a complete top-match schema within a UTF-8 byte budget; clients can reuse it until catalogue invalidation (#2013-73f9).
Runtime MCP outcomes (#2010-30a7)
A bounded body-free /mcp/audit projection records actual HTTP/ACP runtime calls,
response text bytes, correlation UUIDs and separate application/transport/effect
observations. Unobserved delivery and effects stay unknown; native error:null
is not a failure. Client correlation and captured live traces remain separate.
Managed MCP reconnect context (#2008-5317)
Modern stateless managed calls recover mail/project routing from their exact live host-issued peer identity without model-driven registration. Unknown/headerless peers get bounded context-recovery guidance, not a guessed repository or identity. Existing explicit identity replacement and stranded-mail receipts remain intact.
Plugin catalogue update detection compares equal-version payload identities as well as versions. Installed identity is computed by Rust and ignores mutable plugin data.
MCP capability switches replace implementation-name switches. Saved denials migrate once, unknown names remain visible, and discovery and dispatch share the policy. Retired task/story/workflow-member/Design Mode names have no aliases; reconnect cached clients and review grouped allow rules (#2068-63b9).
Mobile offers the Chat tab only when the host has a configured ego executable, using the same availability predicate as desktop. Host settings changes update the tab without reloading. Removing ego configuration returns an open Chat view to Sessions; unavailable saved Chat links also stay on Sessions.
Agent desktop verification
make agent-test provides a preset isolated macOS desktop instance for authorized agent live checks. It uses a distinctly named binary and config namespace, loopback port 19876, disabled global input/microphone/Telegram/updater integrations, a side-effect-free dry-run and an instance-only stop target. See Development Setup.
Abandoned shells
Desktop sidebar session rows and mobile session cards mark a parentless plain shell as Abandoned after one idle hour and show its idle age. The five-second backend sweep requires a fresh OS process inventory: the PTY child must be an interactive shell with no child processes. An unknown inventory, script, foreground command, background child, detached TUIC job, managed identity, live child session, pending input or keep-open hold prevents closure. Unsupported or incomplete OS process observations fail closed.
Settings → Agents → Idle agent hibernation (Expert Mode) includes Close abandoned shells after (hours) (agents.abandoned_shell_hours). The machine-owned value defaults to 0 (off); whole hours from 1 to 65535 enable closure. Idle age is measured from the most recent input, output or semantic activity, including elapsed time while the machine sleeps. Closure rechecks the process inventory and activity at the destructive boundary, and uses the normal session close/tombstone path. The sweep can lag the threshold by one five-second tick. A remote daemon applies its own setting, not the desktop host’s value.
GitHub access diagnostics group exact API messages by account and owner, distinguish NOT_FOUND from retriable denials, and offer the OAuth organization authorization action for every github.com OAuth group.
GitHub Settings Refresh status releases NOT_FOUND retry delays for all accounts; ordinary diagnostics reads do not alter the retry cache (#2133-9213).
Detached checkout visibility: the sidebar shows directory name, short HEAD SHA and detached state in non-selectable rows, with a header count when folded. Discovery preserves newline paths and distinguishes the configured archive pool from unrelated __archived folders.
Mobile session usage (#2150-4e0c)
The session overflow loads a read-only usage block when opened. Session polling does not reload this block unless the selected session ID changes. One plan heading groups its quota windows; an absent tier is not inferred. Claude and Codex show shared account quota for the live process profile. ego shows only the exact PID-bound session row from its v3 usage report, including separate API-equivalent estimates and unknown cost reasons. Available model metadata is shown; missing model metadata does not obscure valid account quota. Unknown usage and stale data are labelled explicitly. Remote sessions use their owning daemon, never a local account. Desktop quota cards and the mobile menu use one presenter for provider/plan, window, percentage used and client-local reset times. The session menu scrolls inside the remaining session pane, below banners and above navigation. Markdown entries are unique by absolute file path; files in different worktrees remain separate.
Worktree discovery diagnostics: forced duplicate-branch checkouts remain visible as read-only paths, missing or moved registrations show repair guidance without automatic pruning, and a folded repository retains a diagnostic count. Bare repository metadata is excluded from missing-checkout diagnostics, including discovery from its linked checkouts. Discovery errors are reported and not cached as empty success. Bisect and relative-gitdir rebase preserve branch identity.
Unavailable detached registrations are excluded from automatic orphan cleanup in both Ask and On modes, including the Ask countdown. They remain repair diagnostics until restored or explicitly removed. Safe-only removal rechecks availability, so a directory moved after assessment cannot be pruned automatically. Explicit user-confirmed removal remains available.
Native story notes: the shared project-scoped story service appends immutable commentary with backend actor provenance, Unix-millisecond time and the current subject revision. Notes do not advance story revisions. Optional workflow evidence stores validated {runId, commandId} references to persisted receipts in the same project and plan, not copied payloads. Story detail lists notes with author/time/revision provenance and receipt IDs, provides an append-only add field, and has an explicit Refresh notes control for external additions. Drafts and pending replies stay scoped to the selected story.
AI Chat slash commands
Local Sending… receipts show submitted text and attachments before the ACP receipt. Backend queue, active-turn, or settlement evidence clears each receipt. Failed submissions retain their payload for explicit retry without changing newer drafts. These local receipts have no cancel or recall action. Agent-advertised slash offers stay available when no active host handler owns the same name.
A leading / opens the selected conversation’s ACP command offer with descriptions,
input hints, prefix filtering and keyboard/mouse completion. Agent invocations keep
/<name> <arguments> prompt text. Supported host actions (/new, /clear, /quit
with /q, /usage, and advertised /compact, /fork, /pause, /resume) use the
existing controls, not model prompts. /clear resets agent context through the
same fresh-session action as New, without deleting saved history. It keeps
the source draft on failure and refuses during running or paused turns. An agent
offer named clear cannot replace this host action. Unknown or unsupported commands retain the
draft and show an inline list of available commands (#2393-19fc). A leading path
token with another / is prompt text unless it is an advertised command name;
bare unknown names remain command attempts (#2421-6e0a).
Ego terminal usage (#2386-6f7c)
Ego terminal usage uses the exact live pid lease and ego usage --json --session <id> reports v3–v6. The badge does not show the ego model or context. Subscription quotas come from the provider quota registry under the key that the foreground ego harness owns; an ego session never borrows a Claude or Codex CLI account. The status bar reads that quota from the shared registry store, with no provider request on a session switch. The ego quota owner reads only ego’s rate_limits contract: passively, the provider-limit observations in the usage report v6 supply the badge quota for every provider; actively, ego auth usage <provider> --json runs with the bound EGO_HOME for a legacy session. A named session uses the manifest’s stable connection ID and ego auth --connection <id> usage --json. Registry keys and both observation paths keep the vendor and connection separate, including when an account ID equals a vendor name. Named OAuth model routes use their vendor identity for quota matching (openai-codex → openai, xai-oauth → xai, minimax-oauth → minimax); legacy route identities stay unchanged. Missing or null connection means legacy; malformed connection identity leaves quota unavailable rather than selecting legacy credentials. Ego ledger costs do not supply badge quotas; session details still show ledger accounting. Unsupported report versions return an error and log one warning per process, rather than silently emptying the badge. The executable comes from the live terminal, not the AI Chat setting.
Story drafts from requests
New story accepts a plain request and fills an editable draft through the existing unattended ego turn. Fill never saves; explicit Create story persists reviewed fields and the optional problem atomically. Busy, cancel and error states preserve the request. Cancel stops only the owned one-shot connection. See the native stories guide.
ACP controllers can supply a launch-only environment map to one fresh connection. Overrides are not persisted or exposed in connection reads; reconnect drops them, and an env-bearing connect to a live peer requires an explicit disconnect first.
Native story search projection
Native story commits feed an optional read-only mdkb daemon projection under
tuic-stories. Persisted ingest revisions include notes without advancing the
subject revision. Desktop and headless hosts compare ID/revision inventories on
connection, retry unavailable daemons every 30 seconds, and retain deletion
tombstones. Story mutations do not depend on daemon availability. Closed and
archived stories stay searchable. No story file is written to the project;
plans and the story mutation API are unchanged. See the native stories guide.
Archived worktree retention
Opt-in global and per-repository retention in days (0/Off by default). Repository refresh removes only eligible recorded checkouts under __archived/, keeps dirty or unsafe archives with named status reasons, and retains commit recovery refs. No new timer or branch deletion. See Worktrees.
Typed workflow commands (WF05)
Published Run command and versioned Tool nodes execute argv or explicit shell contracts in assigned workspaces. Durable resource waits and immutable source/target receipts reuse build-slot/rb admission; unknown effects retain resources until observed stop/release. Secret references and declared output schemas keep secrets out of receipts and refuse zero-match test proof. Native proof remains distinct from Linux execution. See docs/backend/workflows.md for the backend contract; Designer controls are not added by WF05.
Typed workflow plan proposals (WF04 foundation)
Contract-3 Create Stories visits accept a durable, activation- and plan-revision- bound proposal batch through the shared run command API. The daemon consumes native keyed story effects without a Coordinator node or session. Missing input is an incident, not a request to spawn an author. Contract-2 replay and the plan-only Create Stories boundary remain unchanged. ACP launch and lifecycle handover/closure are not part of this foundation.
WF04 attribution increment: new daemon workflow launches retain the original workspace baseline and managed launch reference before spawning. Retries do not replace the baseline with child edits. Bound typed reports also retain durable accepted/refused decisions, with accepted decisions atomic with their report event and read-only inspection through the shared run action. This is receipt disposition, not artifact approval. ACP/policy/continuation/successor/owned-close lifecycle remains incomplete; attribution and report receipt permit no cleanup.
Pinned workflow evidence policy
Workflow graph drafts can pin typed, source-and-requirement-bound review proof, seven-rule FIX/STORY/ACCEPT triage and separate review/repair budgets. The default policy permits two reviews and one repair. Native independent approval and required deterministic checks remain mandatory. PR review subjects do not mark native stories Done. Old publications and runs keep their prior policy. See workflow evidence policy.
Durable workflow timer receipts
Workflow contract-3 runs persist absolute deadlines, stable owner/effect keys, bounded retry/backoff and explicit expiry outcomes. Independent service timers can flush a one-row cohort through a recovery pause. Activation pauses retain their deadlines; cancellation fences delivery. Question expiry never implies approval. This is internal infrastructure for later proof, provider and inbox consumers, not a new Designer control. See workflows.
Pending prompt recall and transcript cleanup
ArrowUp in an empty desktop Compose or AI Chat composer recalls the latest host-owned user prompt after successful withdrawal. AI Chat supports text-only ACP prompts; desktop Compose supports the PTY idle-gate FIFO for every detected agent. Native CLI Pending receipts are not cancellation handles. Slash menus, nonempty drafts, and modified arrow keys retain their normal behavior.
Terminal Chat keeps short inline code chips together. Empty ACP plan snapshots clear the prior steps without drawing a blank Plan card.
Branch-local workflow decisions
Workflow questions and approvals retain structured answer schemas, revision and subject fences, actor provenance and restart-safe deadlines. An unanswered question suspends its activation, not disjoint delivery. The project inbox counts pending and expired questions without a coordinator; all transports use the same service. No timeout grants consent. See workflow decisions.
Post-land workflow proof cohorts
Workflow integration debt has repository-owned, timer-flushed cohorts of up to twelve landings, a single durable parent waiter, pinned validation commands and explicit unfinished states. Dispatch requires an approved explicit operator and complete gate policy. Later landings remain separate debt. Registry backup and restore preserve raw identities and omitted evidence with verified digests.
Pinned reusable workflow Calls
Contract-6 workflows can call bounded same-daemon decision/check definitions with transitive definition/routing-policy pins, declared boolean input/output receipts and stable activation-owned child identities. Completed, blocked, failed, cancelled and uncertain remain distinct. Recovery reuses the child; cancellation requests stop without erasing independent integration proof debt. Story Dispatch remains the delivery fan-out. Usage coverage stays unknown until measured. See backend contract. AI Chat settings includes a persisted Master prompt textarea for additive behavior instructions on new conversations (8192 UTF-8 bytes maximum). Existing conversations keep their original user instructions. Empty adds no user instructions. Separate attended-only host guidance tells the agent that Mermaid blocks render and should be preferred to ASCII diagrams when a diagram is useful; it does not consume the master prompt byte limit or apply to unattended work.
The Plans and Stories toolbar pill shows active-plan, Ready and In progress counts with distinct glyphs and a tooltip line for each number. Ready comes from the Rust summary action, not a frontend subtraction; Done/total remains the progress bar tooltip. Ready-only work therefore remains visible when no story is running.
AI Chat as a hands-free target
Spoken prompts retain the conversation’s pinned repository or the currently viewed worktree, just like typed prompts. Unpinning, switching repository or clearing the view updates the next spoken prompt’s hint without changing the agent cwd.
The Voice target picker includes attached AI Chat sessions, docked or detached. Speech uses the existing ACP prompt queue and caller-bound speech service. Switching targets or closing the bound chat releases the binding.
Native Windows agent hook availability
Native Windows does not install or inject TUIC’s external POSIX status hooks. Hook state returns unsupported, and hook/status setters reject changes before writing preferences or user hook files. Saved preferences and existing hooks remain intact. Settings hides these controls based on the owning backend response, including remote machines. External agents retain heuristic detection; ego keeps native PTY OSC signals and its separate ACP path.
- Claude permission attention: native permission requests and permission notifications set waiting for input; matching tool outcomes and native dialog answers retract it. Ordinary idle notices remain idle, and unrelated tools preserve open dialogs.
Workflow rule controls use the existing Designer: independent duplicates retain template origin/version, discard restores the latest publication, review caps and exact Agent contracts are editable, and typed command/decision contracts are validated before publication. Plans and Stories offers explicit routing import and live/replay pin inspection.
Managed PTYs expose a configurable silence flag with one parent alarm; detached background commands have a finite configurable deadline and a timeout completion wake.
Workflow run inspection
Run history offers Inspect delivery and cost: a committed snapshot and bounded cursor delta, pinned definitions and policy, nested activations, retained reports, evidence and owned sessions. Existing incident recovery, input answers and report acknowledgments remain authoritative. Provider observations in accepted reports retain run/node/attempt ownership and deduplicate stable provider request identities. Missing usage is unknown; estimates and subscription API equivalents cannot claim settled cost parity. Machine command duration stays separate.
Waiting on you
Plans and Stories lists the project’s stories that wait for manual checks, its unanswered workflow questions and its unread reports under Waiting on you. An entry selects its story, opens Run history on the question’s run, or opens the report in the main window. The activity bell notifies each item once in WAITING ON YOU; a refresh, a reseed or a restart does not notify it again, and the entry leaves the bell when the item is resolved. An unreadable source hides its items without clearing them. Activity Dashboard shows agent health only: failures, input delivery stalls and host-owned stalled flags.
Fabbrica help requests, approvals and ask-state outside requests also appear under Waiting on you in every project and in the bell. TUIC reads them through the Fabbrica control MCP, added as the MCP upstream named fabbrica in Settings › MCP (OAuth, one owner consent). It polls every 30 s, and at once when that upstream changes state: tasks_list, then help_list for each active task, then outside_requests_list. An entry opens the Fabbrica console. Help requests and approvals are answered there; an outside request also has Accept and Decline in the section (outside_request_answer, once, then the list is read again); an answered item leaves the section and the bell on the next read. Without consent the section says Connect Fabbrica; when a read fails it says that Fabbrica state is unknown, and the bell keeps its Fabbrica entries.
Portfolio delivery intake
Opt-in durable requests retain original manual/event/mail/result/decision input, claim one pinned coordinator-free plan delivery, recover timers and graph starts, and project bounded inventory with replayable wake cursors. Story Dispatch and the independent proof service retain their existing authority. See Portfolio delivery.
Release scope and publication authority
Per-release countdown with a once-only zero notice, readiness from proof and exact-commit CI, and a publication gate that needs recorded consent for the exact artifact. See Portfolio delivery.
Persistent reports
Unread answers stay until acknowledged, expiry upkeep never drops them, digest rewrites keep ticked decisions, and stale or unchecked progress reports are not offered as current evidence. See Workflows.
Automation completion tab policy
Automation definitions accept optional close_on_finish (default false) through
MCP, HTTP, IPC and the editor. Confirmed completed runs close only their recorded
session through the existing tab-close lifecycle. Failed, unknown and input-blocked
runs stay open. This option does not remove worktrees, branches or sibling tabs.
Automations timezone selection
The Timezone dropdown filters zone names while open. It includes the names accepted by the backend, including aliases and fixed-offset zones. New automations select the host-local zone returned by schedule preview, not the browser zone. A saved zone outside the list remains selected until you choose another zone.
Internal workflow rework: immutable project-owned script/subflow descriptors keep typed IO and outcomes outside instance configuration. Publication verifies inline script content and exact child-publication targets. Runtime and authoring integration remain pending; see workflow contracts.
Reusable-operation project catalogs combine host descriptors with verified saved versions. Host-owned target-kind registration prevents a user-defined script or subflow from selecting an available native handler; descriptor IDs cannot replace host entries. These remain internal contracts, not executable authoring features.
Automatic story backend selection
Plans and Stories identifies TUIC native or Wiz with automatic/explicit provenance, availability, version and reason. Passive Wiz markers select a globally user-approved installed connector; no per-repository command map is required. Generic stories folders do not select Wiz. Unapproved, changed or failed connectors remain visible and fail closed. Explicit bindings and existing records remain supported. Capabilities and provenance refresh with project and repository changes.
- Story backend discovery retains open native work before connector approval, exposes human native/automatic overrides, pins active-run selection across restarts, resolves applicable registry scopes, and compares displayed entry/version approval identity. Dialog refresh rejects mixed backend generations. Runs started before pins keep the pre-pin rule (legacy command binding, otherwise native).
Story backend capabilities preserve limited external editing: title, priority and one criterion addition can remain available independently of full editing. Restricted backends save exactly one supported change at a time; native editing and legacy aggregate behavior are unchanged.
Plugin binary previews can request file size and exact bounded ranges through the existing fs:read capability, without reading the entire file.
Opt-in backend heap profiling
Diagnostic heap-profile builds expose controlled jemalloc captures and separate Rust allocator/native/OS metrics. Normal builds keep the system allocator. See the runbook.
Internal Jira Cloud workflow adapters provide lookup/search/create/update/comment/transitions through pinned catalog contracts, separate current write grants and original-effect observation. Public authoring/composition and live adapter acceptance remain staged. See Jira workflow contracts (#011-2a30).
Neutral workflow transports (staged): shared catalog, versioned drafts, pinned metanode graphs, validation, pure preview and retained run inspection across desktop, HTTP and MCP. Native execution requires the installed backend provider. See workflow transport.
- Staged workflow migration preview: read-only old-to-new policy/configuration report, exact legacy source pins and explicit preservation blockers. Executable conversion and Designer integration remain pending (017-70f7).
Catalog-backed migration audit: the neutral action resolves installed component pins and explicitly lists missing replacements per source node. Current full templates remain blocked; no incomplete draft or live migration is emitted (017-70f7).
Scoped neutral roles use pinned mediated profiles, literal prompts, exact native tools and host-generated source/session-bound reports. Existing-story dispatch saves exact child publication/cohort pins and joins native completed/blocked receipts through the same run owner; combined-artifact batch approval remains explicitly unattested. See the contract.
Native story proposal creation retains exact effect approval, project backend selection, durable review caps and responsible caller receipts. See workflow contracts.
Native GitHub workflow publication supports exact-head review verdicts and the separately approved MarkReady action. See docs/backend/workflows.md (024-c9ee).
Source-bound native issue effects
Native workflows can read their admitted issue and request separately approved comments or additive labels with account, requirements and generation fences. Lost write replies remain uncertain. See the workflow reference.
Native GitHub publication keeps its approved literal HTTPS destination and token through command-scoped identity rewrites, overriding host-wide Git URL rewrites without modifying saved configuration. Competing exact rewrites refuse; artifact, approval and ref lease checks still apply.
Mediated model restart continuation reconciles owned tool effects, then sends their recorded identities and results in a new exact-model prompt. A durable replacement-session fence preserves original tool history and budgets; uncertain tools, active original transports and cancellation prevent continuation. This is new-prompt continuation, with protocol evidence only; it does not resume an interrupted provider turn (#006-6885).
Review policy composition exposes a durable shared reviewer admission budget, source-bound role findings and native proposal dispositions through native.review.bounded, native.correction.policy.assess and the shared correction_policy_region action. Native independent review/current configured checks remain required. Accounting separates reviews, corrections, check attempts and proposals; exhaustion routes to the existing operator port. See backend workflow policy composition.
- Retained workflow operator decisions: exact typed waits, human and proof-gated automatic closure, and frozen-scope release consent through existing native authorities. See contract.