Skip to main content

Crate agent_doc_tmux

Crate agent_doc_tmux 

Source
Expand description

Shared pure tmux model state for agent-doc.

This crate owns reusable tmux observations, realtime state, and layout projection policy. It does not execute tmux commands, dispatch turns, merge document text, or commit document changes.

Structs§

AssociatedPaneCandidate
ColumnMemoryApplication
ColumnMemoryRestoration
StashTtlCandidate
#stash-session-ttl-prune: one stash pane’s candidacy for opt-in TTL reaping.
TmuxFocusOnlyExpansion
TmuxLayoutColumn
TmuxModelMachine
TmuxPaneGeometry
TmuxRealtimeState

Enums§

AssociatedPaneResolution
AssociatedPaneSource
FocusPaneDecision
Outcome of reconciling a candidate pane against the document’s provably-live owner pane.
PanePosition
PanePositionError
PruneCleanupMode
TmuxFocusOnlyExpansionEvent
TmuxFocusOnlyExpansionMode
TmuxObservation
TmuxPaneActivity
TmuxPaneProcessKind
TmuxSupervisorHealth

Constants§

DESTRUCTIVE_REPAIR_MIN_INTERVAL_MS
Minimum interval between destructive doctor-repair passes for one tmux session. Rapid agent-doc sync invocations within this window skip the destructive repair_layout window-op sequence while the non-destructive reconciler still runs.
TMUX_PANE_GEOMETRY_FORMAT

Functions§

apply_column_memory
apply_focus_only_expansion_policy
associated_pane_candidates_detail
auto_start_candidate_files
build_layout_state
classify_sync_layout_columns
decide_focus_pane
Decide whether focus should keep its candidate pane or swap to a provable live owner pane.
destructive_repair_throttled
Pure throttle decision: true means skip the destructive repair this pass.
expand_focus_only_columns_for_editor_switch
focused_column_index
format_associated_pane_fix_error
format_associated_pane_resolution_error
format_associated_pane_selected_error
format_missing_pane_closeout_block_reason
format_missing_pane_manual_repair_reason
is_first_column
Determine if the file is in the first column of the editor layout.
pane_current_command_is_agent_process
pane_current_command_is_bare_shell
Foreground program names tmux reports via #{pane_current_command} when a pane has fallen back to a bare interactive shell. Login shells can show a leading -, for example -zsh.
pane_process_kind_from_current_command
pane_process_kind_from_current_command_samples
parse_pane_inventory_line
parse_session_window_line
parse_session_windows
parse_tmux_pane_geometry
projected_sync_pane_count
repair_layout_skips_rescue_phase
resolve_associated_panes
same_sync_file
select_pane_by_position
stash_ttl_prune_candidate
#stash-session-ttl-prune: pure, non-destructive decision for whether a stash-parked agent-doc pane is eligible for opt-in TTL reaping. Conservative by construction (see tasks/agent-doc/plan-stash-session-ttl-prune.md): the actual kill-pane wiring, the idle-signal query, the config knob, and live verification are all gated — this is only the reusable decision core.
stash_ttl_prune_targets
Filter a candidate list to the pane ids eligible for TTL reaping. With ttl_secs == 0 (disabled / unset) this always returns empty, so the feature is inert until explicitly configured.
transition_tmux