Documentation
¶
Overview ¶
Package workspace manages git worktrees and tmux sessions for parallel development workflows, with AI agent orchestration, PR fetching, and interactive shell access.
Index ¶
- Variables
- func ApplyEnvOverrides(baseEnv []string, overrides map[string]string) []string
- func BuildEnvOverrides(mainRepoPath string) map[string]string
- func EnsureDefaultPrompts(globalConfigDir string) bool
- func ExpandPromptTemplate(body, taskID string) string
- func ExtractFallback(body string) string
- func GenerateExportCommands(overrides map[string]string) []string
- func GenerateSingleEnvCommand(overrides map[string]string) string
- func HasTicketPlaceholder(body string) bool
- func SanitizeBranchName(name string) string
- func ValidateBranchName(name string) (bool, []string, string)
- func WriteDefaultPromptsToConfig(globalConfigDir string) bool
- type Agent
- type AgentOutputMsg
- type AgentPollUnchangedMsg
- type AgentStartedMsg
- type AgentStoppedMsg
- type AgentType
- type ApproveResultMsg
- type AsyncCaptureResultMsg
- type AsyncShellCaptureResultMsg
- type BranchListMsg
- type CheckPRMergedMsg
- type CleanupDoneMsg
- type CleanupResults
- type CommitDetailLoadedMsg
- type CommitFileDiffLoadedMsg
- type CommitStatusInfo
- type CommitStatusLoadedMsg
- type Conflict
- type ConflictsDetectedMsg
- type CreateDoneMsg
- type CreateWorktreeMsg
- type DeleteDoneMsg
- type DeleteWorktreeMsg
- type DiffErrorMsg
- type DiffLoadedMsg
- type DiffTabFocus
- type DiffViewMode
- type DirectMergeDoneMsg
- type FetchPRDoneMsg
- type FetchPRListMsg
- type FocusPane
- type FullFileDiffLoadedMsg
- type GitStats
- type InteractivePasteResultMsg
- type InteractiveSessionDeadMsg
- type InteractiveState
- type LocalBranchesMsg
- type MergeCommitDoneMsg
- type MergeCommitState
- type MergeResolutionMsg
- type MergeStepCompleteMsg
- type MergeWorkflowState
- type MergeWorkflowStep
- type OpenCreateModalWithTaskMsg
- type PRGenerationDoneMsg
- type PRListItem
- type Plugin
- func (p *Plugin) Approve(wt *Worktree) tea.Cmd
- func (p *Plugin) ApproveAll() tea.Cmd
- func (p *Plugin) AttachToSession(wt *Worktree) tea.Cmd
- func (p *Plugin) AttachToWorktreeDir(wt *Worktree) tea.Cmd
- func (p *Plugin) Cleanup(removeSessions bool) error
- func (p *Plugin) CleanupOrphanedSessions() error
- func (p *Plugin) Commands() []plugin.Command
- func (p *Plugin) ConsumesTextInput() bool
- func (p *Plugin) Cursor() *tea.Cursor
- func (p *Plugin) FocusContext() string
- func (p *Plugin) ID() string
- func (p *Plugin) Icon() string
- func (p *Plugin) Init(ctx *plugin.Context) error
- func (p *Plugin) IsFocused() bool
- func (p *Plugin) Name() string
- func (p *Plugin) PreferredMouseMode() tea.MouseMode
- func (p *Plugin) Reject(wt *Worktree) tea.Cmd
- func (p *Plugin) SendText(wt *Worktree, text string) tea.Cmd
- func (p *Plugin) SetFocused(f bool)
- func (p *Plugin) Start() tea.Cmd
- func (p *Plugin) StartAgent(wt *Worktree, agentType AgentType) tea.Cmd
- func (p *Plugin) StartAgentWithOptions(wt *Worktree, agentType AgentType, skipPerms bool, prompt *Prompt) tea.Cmd
- func (p *Plugin) Stop()
- func (p *Plugin) StopAgent(wt *Worktree) tea.Cmd
- func (p *Plugin) Update(msg tea.Msg) (plugin.Plugin, tea.Cmd)
- func (p *Plugin) View(width, height int) string
- type PreviewTab
- type Prompt
- type PromptCancelledMsg
- type PromptInstallDefaultsMsg
- type PromptPicker
- type PromptSelectedMsg
- type PullAfterMergeMsg
- type PushDoneMsg
- type PushMsg
- type RebaseResolutionMsg
- type RefreshDoneMsg
- type RefreshMsg
- type RejectResultMsg
- type RemoteBranchDeleteMsg
- type RemoteCheckDoneMsg
- type RenameShellDoneMsg
- type ResumeConversationMsg
- type SendTextResultMsg
- type SetupConfig
- type ShellAgentErrorMsg
- type ShellAgentStartedMsg
- type ShellCreatedMsg
- type ShellDefinition
- type ShellDetachedMsg
- type ShellKilledMsg
- type ShellManifest
- func (m *ShellManifest) AddShell(def ShellDefinition) error
- func (m *ShellManifest) EnsureShells(defs []ShellDefinition) (bool, error)
- func (m *ShellManifest) FindShell(tmuxName string) *ShellDefinition
- func (m *ShellManifest) Path() string
- func (m *ShellManifest) RemoveShell(tmuxName string) error
- func (m *ShellManifest) Revision() uint64
- func (m *ShellManifest) Save() error
- func (m *ShellManifest) UpdateShell(def ShellDefinition) error
- type ShellManifestChangedMsg
- type ShellOutputMsg
- type ShellSession
- type ShellSessionDeadMsg
- type ShellWatcher
- type StatsErrorMsg
- type StatsLoadedMsg
- type Task
- type TaskDetails
- type TaskDetailsLoadedMsg
- type TaskLinkedMsg
- type TaskSearchResultsMsg
- type TermPanelCaptureMsg
- type TermPanelLayout
- type TermPanelSessionCreatedMsg
- type TicketMode
- type TmuxAttachFinishedMsg
- type UncommittedChangesCheckMsg
- type ViewMode
- type WatchEventMsg
- type WatcherErrorMsg
- type WatcherStartedMsg
- type WorkDirDeletedMsg
- type Worktree
- type WorktreeStatus
Constants ¶
This section is empty.
Variables ¶
var AgentCommands = map[AgentType]string{ AgentClaude: "claude", AgentCodex: "codex", AgentCopilot: "copilot", AgentAider: "aider", AgentAntigravity: "agy", AgentCursor: "cursor-agent", AgentOpenCode: "opencode", AgentPi: "pi", AgentAmp: "amp", AgentGrok: "grok", }
AgentCommands maps agent types to their CLI commands.
var AgentDisplayNames = map[AgentType]string{ AgentNone: "None (attach only)", AgentClaude: "Claude Code", AgentCodex: "Codex CLI", AgentCopilot: "GitHub Copilot CLI", AgentAntigravity: "Antigravity", AgentCursor: "Cursor Agent", AgentOpenCode: "OpenCode", AgentPi: "Pi Agent", AgentAmp: "Amp", AgentGrok: "Grok", AgentShell: "Project Shell", }
AgentDisplayNames provides human-readable names for agent types.
var AgentTypeOrder = []AgentType{ AgentClaude, AgentCodex, AgentCopilot, AgentAntigravity, AgentCursor, AgentOpenCode, AgentPi, AgentAmp, AgentGrok, AgentNone, }
AgentTypeOrder defines the order of agents in selection UI.
var DefaultEnvOverrides = map[string]string{
"GOWORK": "off",
"GOFLAGS": "",
"NODE_OPTIONS": "",
"NODE_PATH": "",
"PYTHONPATH": "",
"VIRTUAL_ENV": "",
}
DefaultEnvOverrides contains environment variables to clear/override for worktree isolation. These prevent common issues when running commands in worktrees.
var PrintModeArgs = map[AgentType][]string{ AgentClaude: {"-p"}, AgentCodex: {"exec", "-"}, AgentAntigravity: {"-p"}, }
PrintModeArgs maps agent types to their non-interactive/print mode CLI arguments. Agents with print mode can generate output to stdout without an interactive session. Only agents that support true non-interactive one-shot output are included. Values are passed as arguments to exec.Command after the agent binary name.
var ShellAgentOrder = []AgentType{ AgentNone, AgentClaude, AgentCodex, AgentCopilot, AgentAntigravity, AgentCursor, AgentOpenCode, AgentPi, AgentAmp, AgentGrok, }
ShellAgentOrder defines agent order for shell creation (None first as default). td-a902fe: shells default to no agent, so "None" is first.
var SkipPermissionsFlags = map[AgentType]string{ AgentClaude: "--dangerously-skip-permissions", AgentCodex: "--dangerously-bypass-approvals-and-sandbox", AgentCopilot: "", AgentAider: "--yes", AgentAntigravity: "--dangerously-skip-permissions", AgentCursor: "-f", AgentOpenCode: "", AgentPi: "", AgentAmp: "--dangerously-allow-all", AgentGrok: "--always-approve", }
SkipPermissionsFlags maps agent types to their skip-permissions CLI flags.
Functions ¶
func ApplyEnvOverrides ¶
ApplyEnvOverrides applies overrides to an existing environment slice. Returns a new slice with overrides applied.
func BuildEnvOverrides ¶
BuildEnvOverrides returns the combined environment overrides for a worktree. User overrides from .worktree-env take precedence over defaults.
func EnsureDefaultPrompts ¶
EnsureDefaultPrompts creates the global config with default prompts if no config exists. Returns true if defaults were created.
func ExpandPromptTemplate ¶
ExpandPromptTemplate expands template variables in a prompt body. - {{ticket}} expands to taskID (returns empty if taskID is empty) - {{ticket || 'default'}} expands to taskID, or 'default' if taskID is empty
func ExtractFallback ¶
ExtractFallback extracts the fallback value from a prompt body. Returns the first fallback found, or empty string if none.
func GenerateExportCommands ¶
GenerateExportCommands generates shell commands to apply environment overrides. Empty values generate unset commands, non-empty generate export commands.
func GenerateSingleEnvCommand ¶
GenerateSingleEnvCommand returns a single shell command that applies all env overrides. This is less noisy than sending multiple commands individually.
func HasTicketPlaceholder ¶
HasTicketPlaceholder returns true if the body contains {{ticket}} or {{ticket || '...'}}
func SanitizeBranchName ¶
SanitizeBranchName converts a string to a valid git branch name. The output should always pass ValidateBranchName.
func ValidateBranchName ¶
ValidateBranchName validates a git branch name and returns validation state. Returns: (valid, errors, sanitized suggestion) Based on git-check-ref-format rules.
func WriteDefaultPromptsToConfig ¶
WriteDefaultPromptsToConfig merges default prompts into the global config. If config.json exists, it preserves other fields and adds/replaces the prompts key. If config.json does not exist, it creates one with default prompts. Returns true on success.
Types ¶
type Agent ¶
type Agent struct {
Type AgentType // claude, codex, aider, gemini
TmuxSession string // tmux session name
TmuxPane string // Pane identifier (e.g., "%12" - globally unique)
PID int // Process ID (if available)
StartedAt time.Time
LastOutput time.Time // Last time output was detected
OutputBuf *tty.OutputBuffer // Last N lines of output
WaitingFor string // Prompt text if waiting
Activity agentactivity.Tracker
ActivityCapturedAt time.Time
// Runaway detection fields (td-018f25)
// Track recent poll times to detect continuous output that would cause CPU spikes.
RecentPollTimes []time.Time // Last N poll times for runaway detection
PollsThrottled bool // True if this agent is throttled due to continuous output
UnchangedPollCount int // Consecutive unchanged polls (for throttle reset)
}
Agent represents an AI coding agent process.
func (*Agent) CheckRunaway ¶
CheckRunaway checks if this agent should be throttled (td-018f25). Returns true and sets PollsThrottled if runaway condition is detected.
func (*Agent) RecordPollTime ¶
func (a *Agent) RecordPollTime()
RecordPollTime records a poll time for runaway detection (td-018f25). Should be called when an AgentOutputMsg (content changed) is received.
func (*Agent) RecordUnchangedPoll ¶
func (a *Agent) RecordUnchangedPoll()
RecordUnchangedPoll records an unchanged poll for throttle reset (td-018f25). Should be called when an AgentPollUnchangedMsg is received.
type AgentOutputMsg ¶
type AgentOutputMsg struct {
WorkspaceName string
Generation int
Output string
Status WorktreeStatus
WaitingFor string
// Cursor position captured atomically with output (only set in interactive mode)
CursorRow int
CursorCol int
CursorVisible bool
HasCursor bool // True if cursor position was captured
PaneHeight int // Tmux pane height for cursor offset calculation
PaneWidth int // Tmux pane width for display alignment
HistorySize int
CaptureBase int
HasHistory bool
// MouseReporting is tmux's #{mouse_any_flag} for the pane, captured with the
// cursor metadata. Only meaningful when HasCursor is set.
MouseReporting bool
Activity agentactivity.Result
CapturedAt time.Time
PaneTitle string
CurrentCommand string
}
AgentOutputMsg delivers new agent output.
type AgentPollUnchangedMsg ¶
type AgentPollUnchangedMsg struct {
WorkspaceName string
Generation int
Output string
CurrentStatus WorktreeStatus // Status including session file re-check
WaitingFor string // Prompt text if waiting
// Cursor position captured atomically (even when content unchanged)
CursorRow int
CursorCol int
CursorVisible bool
HasCursor bool
PaneHeight int // Tmux pane height for cursor offset calculation
PaneWidth int // Tmux pane width for display alignment
HistorySize int
CaptureBase int
HasHistory bool
// MouseReporting is tmux's #{mouse_any_flag} for the pane. Only meaningful
// when HasCursor is set.
MouseReporting bool
Activity agentactivity.Result
CapturedAt time.Time
PaneTitle string
CurrentCommand string
}
AgentPollUnchangedMsg signals content unchanged, schedule next poll.
type AgentStartedMsg ¶
type AgentStartedMsg struct {
Epoch uint64 // Epoch when request was issued (for stale detection)
WorkspaceName string
SessionName string
PaneID string // tmux pane ID (e.g., "%12") for interactive mode
AgentType AgentType
Reconnected bool // True if we reconnected to an existing session
Err error
}
AgentStartedMsg signals an agent has been started in a worktree.
func (AgentStartedMsg) GetEpoch ¶
func (m AgentStartedMsg) GetEpoch() uint64
GetEpoch implements plugin.EpochMessage.
type AgentStoppedMsg ¶
AgentStoppedMsg signals an agent has stopped.
type AgentType ¶
type AgentType string
AgentType represents the type of AI coding agent.
const ( AgentNone AgentType = "" // No agent (attach only) AgentClaude AgentType = "claude" // Claude Code AgentCodex AgentType = "codex" // Codex CLI AgentCopilot AgentType = "copilot" // GitHub Copilot CLI AgentAider AgentType = "aider" // Aider AgentAntigravity AgentType = "antigravity" // Antigravity (agy) AgentCursor AgentType = "cursor" // Cursor Agent AgentOpenCode AgentType = "opencode" // OpenCode AgentPi AgentType = "pi" // Pi Agent AgentAmp AgentType = "amp" // Amp AgentGrok AgentType = "grok" // Grok Build AgentCustom AgentType = "custom" // Custom command AgentShell AgentType = "shell" // Project shell (not an AI agent) )
type ApproveResultMsg ¶
ApproveResultMsg signals the result of an approve action.
type AsyncCaptureResultMsg ¶
type AsyncCaptureResultMsg struct {
WorkspaceName string // Worktree this capture is for
SessionName string // tmux session name
Output string // Captured output (empty on error)
Err error // Non-nil if capture failed
}
AsyncCaptureResultMsg delivers async tmux capture results. Used to avoid blocking the UI thread on tmux subprocess calls (td-c2961e).
type AsyncShellCaptureResultMsg ¶
type AsyncShellCaptureResultMsg struct {
TmuxName string // Shell session tmux name
Output string // Captured output (empty on error)
Err error // Non-nil if capture failed
}
AsyncShellCaptureResultMsg delivers async shell capture results.
type BranchListMsg ¶
BranchListMsg delivers available branches.
type CheckPRMergedMsg ¶
CheckPRMergedMsg signals the result of checking if a PR was merged.
type CleanupDoneMsg ¶
type CleanupDoneMsg struct {
WorkspaceName string
Results *CleanupResults
}
CleanupDoneMsg signals that cleanup operations completed.
type CleanupResults ¶
type CleanupResults struct {
LocalWorktreeDeleted bool
LocalBranchDeleted bool
RemoteBranchDeleted bool
PullAttempted bool
PullSuccess bool
PullError error
Errors []string
// Error detail expansion state (for UX improvements)
ShowErrorDetails bool // Toggle for expanded error view
PullErrorSummary string // Concise 1-line summary
PullErrorFull string // Full git output for details view
BranchDiverged bool // Enables rebase/merge resolution actions
BaseBranch string // Branch name for resolution commands
}
CleanupResults holds the results of cleanup operations for display in summary.
type CommitDetailLoadedMsg ¶ added in v0.81.0
type CommitDetailLoadedMsg struct {
Epoch uint64
WorkspaceName string
CommitHash string
Commit *gitstatus.Commit
Err error
}
CommitDetailLoadedMsg is sent when commit detail (file list) is loaded.
func (CommitDetailLoadedMsg) GetEpoch ¶ added in v0.81.0
func (m CommitDetailLoadedMsg) GetEpoch() uint64
GetEpoch implements plugin.EpochMessage.
type CommitFileDiffLoadedMsg ¶ added in v0.81.0
type CommitFileDiffLoadedMsg struct {
Epoch uint64
WorkspaceName string
CommitHash string
FilePath string
Raw string
Err error
}
CommitFileDiffLoadedMsg is sent when a commit file's diff is loaded.
func (CommitFileDiffLoadedMsg) GetEpoch ¶ added in v0.81.0
func (m CommitFileDiffLoadedMsg) GetEpoch() uint64
GetEpoch implements plugin.EpochMessage.
type CommitStatusInfo ¶
type CommitStatusInfo struct {
Hash string // Short commit hash
Subject string // Commit subject line
Pushed bool // Is commit pushed to remote?
Merged bool // Is commit merged to base branch?
}
CommitStatusInfo holds commit information with merge/push status.
type CommitStatusLoadedMsg ¶
type CommitStatusLoadedMsg struct {
Epoch uint64 // Epoch when request was issued (for stale detection)
WorkspaceName string
Commits []CommitStatusInfo
Err error
}
CommitStatusLoadedMsg delivers commit status info for the diff view header.
func (CommitStatusLoadedMsg) GetEpoch ¶
func (m CommitStatusLoadedMsg) GetEpoch() uint64
GetEpoch implements plugin.EpochMessage.
type Conflict ¶
type Conflict struct {
Worktrees []string // Names of worktrees with conflicting changes
Files []string // List of conflicting files
}
Conflict represents a file conflict between worktrees.
type ConflictsDetectedMsg ¶
ConflictsDetectedMsg signals that conflicts have been detected.
type CreateDoneMsg ¶
type CreateDoneMsg struct {
Worktree *Worktree
AgentType AgentType // Agent selected at creation
SkipPerms bool // Whether to skip permissions
Prompt *Prompt // Selected prompt template (nil if none)
Err error
}
CreateDoneMsg signals worktree creation completed.
type CreateWorktreeMsg ¶
CreateWorktreeMsg requests worktree creation.
type DeleteDoneMsg ¶
type DeleteDoneMsg struct {
Name string
Err error
Warnings []string // Non-fatal warnings (e.g., branch deletion failures)
}
DeleteDoneMsg signals worktree deletion completed.
type DeleteWorktreeMsg ¶
DeleteWorktreeMsg requests worktree deletion.
type DiffErrorMsg ¶
DiffErrorMsg signals diff loading failed.
type DiffLoadedMsg ¶
type DiffLoadedMsg struct {
Epoch uint64 // Epoch when request was issued (for stale detection)
WorkspaceName string
Content string
Raw string
}
DiffLoadedMsg delivers diff content for a worktree.
func (DiffLoadedMsg) GetEpoch ¶
func (m DiffLoadedMsg) GetEpoch() uint64
GetEpoch implements plugin.EpochMessage.
type DiffTabFocus ¶ added in v0.81.0
type DiffTabFocus int
DiffTabFocus represents which sub-pane is focused within the diff tab.
const ( DiffTabFocusFileList DiffTabFocus = iota // File list navigation (files + commits) DiffTabFocusDiff // Per-file diff viewing DiffTabFocusCommitFiles // Commit file list (drilled into a commit) DiffTabFocusCommitDiff // Commit file diff viewing )
type DiffViewMode ¶
type DiffViewMode int
DiffViewMode specifies the diff rendering mode.
const ( DiffViewUnified DiffViewMode = iota // Line-by-line unified view DiffViewSideBySide // Side-by-side split view DiffViewFullFile // Full-file side-by-side view (like VS Code diff) )
type DirectMergeDoneMsg ¶
DirectMergeDoneMsg signals that direct merge completed.
type FetchPRDoneMsg ¶
type FetchPRDoneMsg struct {
Worktree *Worktree
AlreadyLocal bool // branch already existed locally
Branch string // for finding existing worktree when Worktree is nil
Err error
}
FetchPRDoneMsg signals that a PR branch was fetched and worktree created.
type FetchPRListMsg ¶
type FetchPRListMsg struct {
PRs []PRListItem
Err error
}
FetchPRListMsg delivers the list of open PRs from gh CLI.
type FullFileDiffLoadedMsg ¶ added in v0.81.0
type FullFileDiffLoadedMsg struct {
Epoch uint64
WorkspaceName string
OldContent string
NewContent string
Parsed *gitstatus.ParsedDiff
FilePath string
CommitHash string // Non-empty when loaded for a commit file diff
}
FullFileDiffLoadedMsg is sent when full-file content is loaded for workspace diff view.
func (FullFileDiffLoadedMsg) GetEpoch ¶ added in v0.81.0
func (m FullFileDiffLoadedMsg) GetEpoch() uint64
GetEpoch implements plugin.EpochMessage.
type GitStats ¶
type GitStats struct {
Additions int
Deletions int
FilesChanged int
Ahead int // Commits ahead of base branch
Behind int // Commits behind base branch
}
GitStats holds file change statistics.
type InteractivePasteResultMsg ¶
InteractivePasteResultMsg reports clipboard paste results for interactive mode.
type InteractiveSessionDeadMsg ¶
type InteractiveSessionDeadMsg struct{}
InteractiveSessionDeadMsg indicates the tmux session has ended. Sent when send-keys or capture fails with a session/pane not found error.
type InteractiveState ¶
type InteractiveState struct {
// Active indicates whether interactive mode is currently active.
Active bool
// TargetPane is the tmux pane ID (e.g., "%12") receiving input.
TargetPane string
// TargetSession is the tmux session name for the active pane.
TargetSession string
// TermPanel is true when interactive mode targets the terminal panel session
// (rather than the main agent/shell session).
TermPanel bool
// PaneOnEntry is the pane that was active before interactive mode took over,
// restored on exit. Interactive mode forces the preview pane active so the
// embedded terminal owns the cursor and mouse mode (td-62b8ab).
PaneOnEntry FocusPane
// LastKeyTime tracks when the last key was sent for polling decay.
LastKeyTime time.Time
// EscapePressed tracks if a single Escape was recently pressed
// (for double-escape exit detection with 150ms delay).
EscapePressed bool
// EscapeTime is when the first Escape was pressed.
EscapeTime time.Time
// CursorRow and CursorCol track the cached cursor position for overlay rendering.
// Updated asynchronously via cursorPositionMsg from poll handler (td-648af4).
CursorRow int
CursorCol int
// CursorVisible indicates if the cursor should be rendered.
// Updated asynchronously via cursorPositionMsg from poll handler (td-648af4).
CursorVisible bool
// PaneHeight tracks the tmux pane height for cursor offset calculation.
// Used to adjust cursor_y when display height differs from pane height.
PaneHeight int
// PaneWidth tracks the tmux pane width for display width alignment.
PaneWidth int
// CursorHistorySize is the tmux history_size captured atomically with the
// cursor. In tmux's absolute line space the scrollback occupies
// [0, history_size) and pane row j is history_size+j, so this converts the
// pane-relative CursorRow into a buffer coordinate. Without it the rendered
// cursor floats above the live row by however much scrollback the capture
// included (td-d29821).
CursorHistorySize int
// HasCursorHistory reports whether CursorHistorySize is meaningful. Captures
// that predate the metadata, or that failed to parse it, fall back to the
// pane-relative placement.
HasCursorHistory bool
// VisibleStart and VisibleEnd track the buffer line range currently visible.
// Used for interactive selection mapping.
VisibleStart int
VisibleEnd int
// ContentRowOffset is the number of preview content rows before output lines.
// Used to map mouse coordinates to buffer lines.
ContentRowOffset int
// BracketedPasteEnabled tracks whether the target app has enabled
// bracketed paste mode (ESC[?2004h). Updated from captured output.
BracketedPasteEnabled bool
// MouseReportingEnabled tracks whether the target app has enabled
// mouse reporting (1000/1002/1003/1006/1015). Updated from captured output.
//
// Note: captures come from `capture-pane -e`, which emits rendering escapes
// only, so DECSET mode sequences never appear in them and this stays false in
// practice. Click handling still reads it, deliberately: flipping clicks from
// local selection to app forwarding is a separate behaviour change. Wheel
// routing uses PaneMouseReporting instead.
MouseReportingEnabled bool
// PaneMouseReporting is tmux's #{mouse_any_flag} for the target pane: the
// app has enabled at least one mouse tracking mode and expects wheel notches
// as mouse reports rather than having the viewer scroll its own scrollback.
PaneMouseReporting bool
// EscapeTimerPending tracks if an escape timer is already in flight.
// Prevents duplicate timers from accumulating (td-83dc22).
EscapeTimerPending bool
// LastResizeAt tracks the last time we attempted to resize the tmux pane.
LastResizeAt time.Time
}
InteractiveState tracks state for interactive mode (tmux input passthrough). Feature-gated behind tmux_interactive_input feature flag.
type LocalBranchesMsg ¶
LocalBranchesMsg returns available local branches for target selection.
type MergeCommitDoneMsg ¶
MergeCommitDoneMsg signals that the commit before merge completed.
type MergeCommitState ¶
type MergeCommitState struct {
Worktree *Worktree
StagedCount int
ModifiedCount int
UntrackedCount int
CommitMessage string
Error string
}
MergeCommitState holds state for the commit-before-merge modal.
type MergeResolutionMsg ¶
MergeResolutionMsg signals result of merge resolution attempt.
type MergeStepCompleteMsg ¶
type MergeStepCompleteMsg struct {
WorkspaceName string
Step MergeWorkflowStep
Data string // Step-specific data (e.g., PR URL)
Err error
ExistingPRFound bool // True if PR already existed (vs newly created)
}
MergeStepCompleteMsg signals a merge workflow step completed.
type MergeWorkflowState ¶
type MergeWorkflowState struct {
Worktree *Worktree
Step MergeWorkflowStep
DiffSummary string
PRTitle string
PRBody string
PRURL string
ExistingPR bool // True if using an existing PR (vs newly created)
Error error
ErrorTitle string // Short title for error display (e.g. "Direct Merge Failed")
ErrorDetail string // Full error text for display and clipboard copy
ErrorFromStep MergeWorkflowStep // Which step produced the error
StepStatus map[MergeWorkflowStep]string // "pending", "running", "done", "error", "skipped"
DeleteAfterMerge bool // true = delete worktree after merge (default)
// Target branch selection
TargetBranch string // Resolved target branch for merge/PR
TargetBranchOption int // Selected index in branch list
TargetBranches []string // Available branches for selection
// Merge method selection
UseDirectMerge bool // true = direct merge to base, false = PR workflow
MergeMethodOption int // 0 = Create PR (default), 1 = Direct merge
// Post-merge confirmation options
DeleteLocalWorktree bool // Checkbox: delete local worktree (default: true)
DeleteLocalBranch bool // Checkbox: delete local branch (default: true)
DeleteRemoteBranch bool // Checkbox: delete remote branch (default: false)
PullAfterMerge bool // Checkbox: pull changes to current branch after merge
CurrentBranch string // Branch user was on before merge (for pull)
ConfirmationFocus int // 0-3=checkboxes, 4=confirm btn, 5=skip btn
ConfirmationHover int // Mouse hover state
// PR generation state
PRGenerationDots int // Animation counter for progress dots (0-3)
PRGenerationCancel context.CancelFunc // Cancel func for in-flight agent process
// Cleanup results for summary display
CleanupResults *CleanupResults
PendingCleanupOps int // Counter for parallel cleanup operations in flight
}
MergeWorkflowState holds the state for the merge workflow modal.
type MergeWorkflowStep ¶
type MergeWorkflowStep int
MergeWorkflowStep represents the current step in the merge workflow.
const ( MergeStepReviewDiff MergeWorkflowStep = iota MergeStepTargetBranch // Choose target branch for merge/PR MergeStepMergeMethod // Choose: PR workflow or direct merge MergeStepPush MergeStepGeneratePR // Agent generates PR title/body MergeStepCreatePR MergeStepWaitingMerge MergeStepDirectMerge // Performing direct merge (no PR) MergeStepPostMergeConfirmation // User confirms cleanup options after PR merge MergeStepCleanup MergeStepDone MergeStepError // Error display step (strategy-agnostic) )
func (MergeWorkflowStep) String ¶
func (s MergeWorkflowStep) String() string
String returns a display name for the merge step.
type OpenCreateModalWithTaskMsg ¶
OpenCreateModalWithTaskMsg opens create modal pre-filled with task data. Sent from td-monitor plugin when user presses send-to-worktree hotkey.
type PRGenerationDoneMsg ¶ added in v0.78.0
PRGenerationDoneMsg signals that agent-powered PR description generation completed.
type PRListItem ¶
type PRListItem struct {
Number int `json:"number"`
Title string `json:"title"`
Branch string `json:"headRefName"`
Author prAuthor `json:"author"`
URL string `json:"url"`
CreatedAt string `json:"createdAt"`
IsDraft bool `json:"isDraft"`
}
PRListItem represents an open pull request for the fetch modal.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements the worktree manager plugin.
func (*Plugin) ApproveAll ¶
ApproveAll approves all worktrees with pending prompts.
func (*Plugin) AttachToSession ¶
AttachToSession attaches to a tmux session using tea.ExecProcess.
func (*Plugin) AttachToWorktreeDir ¶
AttachToWorktreeDir creates a tmux session in the worktree directory and attaches to it.
func (*Plugin) CleanupOrphanedSessions ¶
CleanupOrphanedSessions removes sessions that no longer have worktrees.
func (*Plugin) ConsumesTextInput ¶
ConsumesTextInput reports whether the workspace plugin is currently in a mode that expects typed text input.
func (*Plugin) Cursor ¶ added in v0.88.0
Cursor exposes the active embedded terminal's native cursor in plugin-local coordinates. App-level focus, modal, and bounds checks are applied later.
func (*Plugin) FocusContext ¶
FocusContext returns the current focus context for keybinding dispatch.
func (*Plugin) PreferredMouseMode ¶ added in v0.88.0
PreferredMouseMode keeps hover-rich all-motion reporting for ordinary workspace views and requests cell motion only while a child terminal owns interactive input.
func (*Plugin) StartAgent ¶
StartAgent creates a tmux session and starts an agent for a worktree. If a session already exists, it reconnects to it instead of failing.
func (*Plugin) StartAgentWithOptions ¶
func (p *Plugin) StartAgentWithOptions(wt *Worktree, agentType AgentType, skipPerms bool, prompt *Prompt) tea.Cmd
StartAgentWithOptions creates a tmux session and starts an agent with options. If a session already exists, it reconnects to it instead of failing.
type PreviewTab ¶
type PreviewTab int
PreviewTab represents the active tab in the preview pane.
const ( PreviewTabOutput PreviewTab = iota // Agent output PreviewTabDiff // Git diff PreviewTabTask // TD task info )
type Prompt ¶
type Prompt struct {
Name string `json:"name"`
TicketMode TicketMode `json:"ticketMode"`
Body string `json:"body"`
Source string `json:"-"` // "global" or "project" (set at load time)
}
Prompt represents a configurable prompt template.
func DefaultPrompts ¶
func DefaultPrompts() []Prompt
DefaultPrompts returns the built-in default prompts. These serve as examples users can modify.
func LoadPrompts ¶
LoadPrompts loads and merges prompts from global and project config directories. Project prompts override global prompts with the same name. If no config exists, creates global config with default prompts. Returns sorted list by name.
type PromptCancelledMsg ¶
type PromptCancelledMsg struct{}
PromptCancelledMsg is sent when the picker is cancelled.
type PromptInstallDefaultsMsg ¶
type PromptInstallDefaultsMsg struct{}
PromptInstallDefaultsMsg is sent when user requests installing default prompts.
type PromptPicker ¶
type PromptPicker struct {
// contains filtered or unexported fields
}
PromptPicker is a modal for selecting a prompt template.
func NewPromptPicker ¶
func NewPromptPicker(prompts []Prompt, width, height int) *PromptPicker
NewPromptPicker creates a new prompt picker.
func (*PromptPicker) ClearHover ¶
func (pp *PromptPicker) ClearHover()
ClearHover clears the hover state.
func (*PromptPicker) FocusFilter ¶
func (pp *PromptPicker) FocusFilter()
FocusFilter focuses the filter input field.
func (*PromptPicker) SetHover ¶
func (pp *PromptPicker) SetHover(idx int)
SetHover sets the hover index for visual feedback.
func (*PromptPicker) Update ¶
func (pp *PromptPicker) Update(msg tea.Msg) (*PromptPicker, tea.Cmd)
Update handles input for the prompt picker.
func (*PromptPicker) View ¶
func (pp *PromptPicker) View() string
View renders the prompt picker modal.
type PromptSelectedMsg ¶
type PromptSelectedMsg struct {
Prompt *Prompt // nil means "none" was selected
}
PromptSelectedMsg is sent when a prompt is selected.
type PullAfterMergeMsg ¶
PullAfterMergeMsg signals that pull after merge completed.
type PushDoneMsg ¶
PushDoneMsg signals push operation completed.
type RebaseResolutionMsg ¶
RebaseResolutionMsg signals result of rebase resolution attempt.
type RefreshDoneMsg ¶
type RefreshDoneMsg struct {
Epoch uint64 // Epoch when request was issued (for stale detection)
Worktrees []*Worktree
Err error
}
RefreshDoneMsg signals that refresh has completed.
func (RefreshDoneMsg) GetEpoch ¶
func (m RefreshDoneMsg) GetEpoch() uint64
GetEpoch implements plugin.EpochMessage.
type RejectResultMsg ¶
RejectResultMsg signals the result of a reject action.
type RemoteBranchDeleteMsg ¶
RemoteBranchDeleteMsg signals the result of deleting a remote branch.
type RemoteCheckDoneMsg ¶
RemoteCheckDoneMsg signals remote branch existence check completed.
type RenameShellDoneMsg ¶
type RenameShellDoneMsg struct {
TmuxName string // Session name (stable identifier)
NewName string // New display name
Err error // Non-nil if rename failed
}
RenameShellDoneMsg signals shell rename operation completed
type ResumeConversationMsg ¶
type ResumeConversationMsg struct {
SessionID string // Adapter session ID for resume command
AdapterID string // Adapter type (claude-code, codex, etc.)
ResumeCmd string // Full resume command (e.g., "claude --resume xyz")
Type string // "shell" or "worktree"
// Worktree-specific fields (only used when Type == "worktree")
WorktreeName string // Branch name for new worktree
BaseBranch string // Base branch to create from
AgentType AgentType // Agent to start (matches adapter or user selection)
SkipPerms bool // Whether to auto-approve agent actions
}
ResumeConversationMsg requests resuming a conversation in a new shell or worktree. Sent from conversations plugin when user presses O key.
type SendTextResultMsg ¶
SendTextResultMsg signals the result of sending text to an agent.
type SetupConfig ¶
type SetupConfig struct {
CopyEnv bool // Whether to copy env files (default: true)
EnvFiles []string // List of env files to copy
SymlinkDirs []string // Directories to symlink (default: empty, opt-in)
RunSetupScript bool // Whether to run .worktree-setup.sh (default: true)
}
SetupConfig holds worktree setup configuration.
func DefaultSetupConfig ¶
func DefaultSetupConfig() *SetupConfig
DefaultSetupConfig returns the default setup configuration.
type ShellAgentErrorMsg ¶
type ShellAgentErrorMsg struct {
TmuxName string // Shell's tmux session name
Err error // Error that occurred
}
ShellAgentErrorMsg signals agent failed to start in a shell session. td-21a2d8: Sent when agent command fails to execute.
type ShellAgentStartedMsg ¶
type ShellAgentStartedMsg struct {
TmuxName string // Shell's tmux session name
AgentType AgentType // Agent type that was started
SkipPerms bool // Whether skip permissions was enabled
}
ShellAgentStartedMsg signals agent was started in a shell session. td-21a2d8: Sent after agent command is sent to tmux.
type ShellCreatedMsg ¶
type ShellCreatedMsg struct {
SessionName string // tmux session name
DisplayName string // Display name (e.g., "Shell 1")
PaneID string // tmux pane ID (e.g., "%12") for interactive mode
Err error // Non-nil if creation failed
AgentType AgentType // td-16b2b5: Agent to start (AgentNone if plain shell)
SkipPerms bool // td-16b2b5: Whether to skip permissions for agent
// KeepSelection leaves the sidebar selection where it is instead of
// selecting the new shell. Set for shells created without the user
// explicitly asking for one (auto-create on first focus).
KeepSelection bool
}
ShellCreatedMsg signals shell session was created
type ShellDefinition ¶
type ShellDefinition struct {
TmuxName string `json:"tmuxName"`
DisplayName string `json:"displayName"`
// Namespace identifies the tmux server that owns this session
// (tmuxenv.Namespace — the resolved socket path). Empty means a
// pre-td-8d18de entry: reconciliation claims it if its name matches this
// working directory's own discovery pattern (only this machine's default
// server could have produced that name, so it stays prunable), and
// otherwise leaves it alone, because absence is not proof of death.
//
// The deliberate consequence: an entry belonging to a working directory
// that no longer exists — a deleted worktree — is retained in the shared
// file indefinitely. It is not displayed by any instance (visibility is
// per-workDir), so it costs a few bytes rather than a sidebar row, and an
// explicit kill still removes it.
Namespace string `json:"namespace,omitempty"`
CreatedAt time.Time `json:"createdAt"`
AgentType string `json:"agentType,omitempty"`
SkipPerms bool `json:"skipPerms,omitempty"`
}
ShellDefinition contains all info needed to recreate a shell session.
type ShellDetachedMsg ¶
type ShellDetachedMsg struct {
Err error
}
ShellDetachedMsg signals user detached from shell session
type ShellKilledMsg ¶
type ShellKilledMsg struct {
SessionName string // tmux session name that was killed
}
ShellKilledMsg signals shell session was terminated
type ShellManifest ¶
type ShellManifest struct {
Version int `json:"version"`
Shells []ShellDefinition `json:"shells"`
// contains filtered or unexported fields
}
ShellManifest stores persistent shell definitions for cross-instance sync and reboot survival. Stored in ~/.config/sidecar/projects/<slug>/shells.json.
func LoadShellManifest ¶
func LoadShellManifest(path string) (*ShellManifest, error)
LoadShellManifest loads the shell manifest from disk. Returns an empty manifest (not error) if file doesn't exist or is corrupted.
func (*ShellManifest) AddShell ¶
func (m *ShellManifest) AddShell(def ShellDefinition) error
AddShell adds a shell definition and saves.
func (*ShellManifest) EnsureShells ¶ added in v0.93.0
func (m *ShellManifest) EnsureShells(defs []ShellDefinition) (bool, error)
EnsureShells adds any definitions the manifest is missing and saves once. Existing entries are left untouched. Returns true when the file changed.
This is the additive counterpart to AddShell: it heals a manifest another instance narrowed (td-8d18de) without ever overwriting what that instance wrote.
func (*ShellManifest) FindShell ¶
func (m *ShellManifest) FindShell(tmuxName string) *ShellDefinition
FindShell returns a shell definition by tmuxName, or nil if not found.
func (*ShellManifest) Path ¶
func (m *ShellManifest) Path() string
Path returns the manifest file path.
func (*ShellManifest) RemoveShell ¶
func (m *ShellManifest) RemoveShell(tmuxName string) error
RemoveShell removes a shell by tmuxName and saves.
func (*ShellManifest) Revision ¶ added in v0.93.0
func (m *ShellManifest) Revision() uint64
Revision counts the successful writes this process has made through this manifest object. A reconciliation that started before a local delete and lands after it would resurrect the deleted shell, so callers stamp the revision they observed and discard (or re-run) a sync whose base moved underneath them (td-8d18de).
func (*ShellManifest) Save ¶
func (m *ShellManifest) Save() error
Save writes the manifest to disk atomically with file locking.
func (*ShellManifest) UpdateShell ¶
func (m *ShellManifest) UpdateShell(def ShellDefinition) error
UpdateShell updates an existing shell definition and saves.
type ShellManifestChangedMsg ¶
type ShellManifestChangedMsg struct{}
ShellManifestChangedMsg is emitted when the manifest file changes. This can be triggered by another sidecar instance modifying the manifest.
type ShellOutputMsg ¶
type ShellOutputMsg struct {
TmuxName string // Session name (stable identifier)
Generation int
Output string
Err error
Activity agentactivity.Result
CapturedAt time.Time
PaneTitle string
CurrentCommand string
// Cursor position captured atomically with output (only set in interactive mode)
CursorRow int
CursorCol int
CursorVisible bool
HasCursor bool // True if cursor position was captured
PaneHeight int // Tmux pane height for cursor offset calculation
PaneWidth int // Tmux pane width for display alignment
HistorySize int
CaptureBase int
HasHistory bool
// MouseReporting is tmux's #{mouse_any_flag} for the pane. Only
// meaningful when HasCursor is set.
MouseReporting bool
}
ShellOutputMsg signals shell output was captured (for polling)
type ShellSession ¶
type ShellSession struct {
Name string // Display name (e.g., "Shell 1")
TmuxName string // tmux session name (e.g., "sidecar-sh-project-1")
Agent *Agent // Reuses Agent struct for tmux state
CreatedAt time.Time
ChosenAgent AgentType // td-317b64: Agent type selected at creation (AgentNone for plain shell)
SkipPerms bool // td-317b64: Whether skip permissions was enabled
IsOrphaned bool // td-f88fdd: True if manifest entry exists but tmux session is gone
}
ShellSession represents a tmux shell session (not tied to a git worktree).
type ShellSessionDeadMsg ¶
type ShellSessionDeadMsg struct {
TmuxName string // Session name for cleanup (stable identifier)
Generation int // Poll owner; zero for non-poll lifecycle checks
}
ShellSessionDeadMsg signals shell session was externally terminated (e.g., user typed 'exit' in the shell)
type ShellWatcher ¶
type ShellWatcher struct {
// contains filtered or unexported fields
}
ShellWatcher monitors the shell manifest file for changes. When changes are detected, it emits ShellManifestChangedMsg for cross-instance sync.
func NewShellWatcher ¶
func NewShellWatcher(manifestPath string) (*ShellWatcher, error)
NewShellWatcher creates a watcher for the shell manifest file.
func (*ShellWatcher) Start ¶
func (w *ShellWatcher) Start() <-chan tea.Msg
Start begins watching and returns a channel for receiving messages. The channel emits ShellManifestChangedMsg when the manifest changes.
func (*ShellWatcher) Stop ¶
func (w *ShellWatcher) Stop()
Stop stops the watcher and closes channels.
type StatsErrorMsg ¶
StatsErrorMsg signals stats loading failed.
type StatsLoadedMsg ¶
type StatsLoadedMsg struct {
Epoch uint64 // Epoch when request was issued (for stale detection)
WorkspaceName string
Stats *GitStats
}
StatsLoadedMsg delivers git stats for a worktree.
func (StatsLoadedMsg) GetEpoch ¶
func (m StatsLoadedMsg) GetEpoch() uint64
GetEpoch implements plugin.EpochMessage.
type Task ¶
type Task struct {
ID string
Title string
Status string
Description string
EpicTitle string // Parent epic title for search
}
Task represents a TD task for linking.
type TaskDetails ¶
type TaskDetails struct {
ID string
Title string
Status string
Priority string
Type string
Description string
Acceptance string
CreatedAt string
UpdatedAt string
}
TaskDetails contains full task information for preview pane.
type TaskDetailsLoadedMsg ¶
type TaskDetailsLoadedMsg struct {
TaskID string
Details *TaskDetails
Err error
}
TaskDetailsLoadedMsg delivers task details for the preview pane.
type TaskLinkedMsg ¶
TaskLinkedMsg signals a task was linked to a worktree.
type TaskSearchResultsMsg ¶
TaskSearchResultsMsg delivers task search results.
type TermPanelCaptureMsg ¶ added in v0.83.0
type TermPanelCaptureMsg struct {
SessionName string
Generation int
Output string
Err error
HasCursor bool
CursorRow int
CursorCol int
CursorVisible bool
PaneHeight int
PaneWidth int
HistorySize int
CaptureBase int
HasHistory bool
// MouseReporting is tmux's #{mouse_any_flag} for the pane. Only meaningful
// when HasCursor is set.
MouseReporting bool
}
TermPanelCaptureMsg delivers captured output from the terminal panel's tmux session.
type TermPanelLayout ¶ added in v0.83.0
type TermPanelLayout int
TermPanelLayout represents the terminal panel split orientation.
const ( TermPanelBottom TermPanelLayout = iota // Terminal below output (horizontal divider) TermPanelRight // Terminal to the right of output (vertical divider) )
type TermPanelSessionCreatedMsg ¶ added in v0.83.0
TermPanelSessionCreatedMsg is sent when the terminal panel tmux session is created.
type TicketMode ¶
type TicketMode string
TicketMode defines how the task field behaves with a prompt.
const ( TicketRequired TicketMode = "required" // Task must be selected TicketOptional TicketMode = "optional" // Task is optional (may have fallback) TicketNone TicketMode = "none" // Task field is hidden )
type TmuxAttachFinishedMsg ¶
TmuxAttachFinishedMsg signals return from tmux attach.
type UncommittedChangesCheckMsg ¶
type UncommittedChangesCheckMsg struct {
WorkspaceName string
HasChanges bool
StagedCount int
ModifiedCount int
UntrackedCount int
Err error
}
UncommittedChangesCheckMsg signals the result of checking for uncommitted changes.
type ViewMode ¶
type ViewMode int
ViewMode represents the current view state.
const ( ViewModeList ViewMode = iota // List view (default) ViewModeKanban // Kanban board view ViewModeCreate // New worktree modal ViewModeTaskLink // Task link modal (for existing worktrees) ViewModeMerge // Merge workflow modal ViewModeAgentChoice // Agent action choice modal (attach/restart) ViewModeConfirmDelete // Delete confirmation modal ViewModeConfirmDeleteShell // Shell delete confirmation modal ViewModeCommitForMerge // Commit modal before merge workflow ViewModePromptPicker // Prompt template picker modal ViewModeTypeSelector // Type selector modal (shell vs worktree) ViewModeRenameShell // Rename shell modal ViewModeFilePicker // Diff file picker modal ViewModeInteractive // Interactive mode (tmux input passthrough) ViewModeFetchPR // Fetch remote PR modal ViewModeAgentConfig // Agent config modal (start/restart with options) )
type WatchEventMsg ¶
type WatchEventMsg struct {
Path string
}
WatchEventMsg signals a filesystem change was detected.
type WatcherErrorMsg ¶
type WatcherErrorMsg struct {
Err error
}
WatcherErrorMsg signals a file watcher error.
type WatcherStartedMsg ¶
type WatcherStartedMsg struct{}
WatcherStartedMsg signals the file watcher is running.
type WorkDirDeletedMsg ¶
type WorkDirDeletedMsg struct {
MainWorktreePath string
}
WorkDirDeletedMsg signals that the current working directory was deleted. This happens when sidecar is running inside a worktree that gets deleted.
type Worktree ¶
type Worktree struct {
Name string // e.g., "auth-oauth-flow"
Path string // Absolute path
Branch string // Git branch name
BaseBranch string // Branch worktree was created from
TaskID string // Linked td task (e.g., "td-a1b2")
TaskTitle string // Task title (used as fallback if td show fails)
PRURL string // URL of open PR (if any)
ChosenAgentType AgentType // Agent selected at creation (persists even when agent not running)
Agent *Agent // nil if no agent running
Status WorktreeStatus // Derived from agent state
Stats *GitStats // +/- line counts
CreatedAt time.Time
UpdatedAt time.Time
IsOrphaned bool // True if agent file exists but tmux session is gone
IsMain bool // True if this is the primary/main worktree (project root)
IsMissing bool // True if worktree directory no longer exists (detected via os.Stat or git prunable)
}
Worktree represents a git worktree with optional agent.
type WorktreeStatus ¶
type WorktreeStatus int
WorktreeStatus represents the current state of a worktree.
const ( StatusPaused WorktreeStatus = iota // No agent, worktree exists StatusActive // Agent running, recent output StatusThinking // Agent is processing/thinking StatusWaiting // Agent waiting for input StatusDone // Agent completed task StatusError // Agent crashed or errored )
func (WorktreeStatus) Icon ¶
func (s WorktreeStatus) Icon() string
Icon returns the status indicator icon for display.
func (WorktreeStatus) String ¶
func (s WorktreeStatus) String() string
String returns the display string for a WorktreeStatus.
Source Files
¶
- activity_status.go
- agent.go
- agent_config_modal.go
- agent_session.go
- agents_config.go
- browser.go
- commands.go
- conflicts.go
- constants.go
- create_modal.go
- diff.go
- doc.go
- env.go
- fetch_pr.go
- fetch_pr_view.go
- interactive.go
- interactive_selection.go
- kanban.go
- keys.go
- merge.go
- messages.go
- mouse.go
- native_terminal.go
- pane_geometry.go
- plugin.go
- poll_scheduler.go
- prompt_picker.go
- prompt_picker_modal.go
- prompts.go
- setup.go
- shell.go
- shell_manifest.go
- shell_merge.go
- shell_startup.go
- shell_watcher.go
- stats.go
- template.go
- terminal_control.go
- terminal_history.go
- terminal_links.go
- terminal_panel.go
- terminal_search.go
- terminal_viewport.go
- types.go
- update.go
- view_diff.go
- view_helpers.go
- view_kanban.go
- view_list.go
- view_modals.go
- view_preview.go
- worktree.go