chore: remove dead tmux-based session code (agent-session.sh, phase-handler.sh) #262
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#262
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
All agents migrated to the
claude -pone-shot SDK path (lib/agent-sdk.sh). The following files contain dead tmux-based session management code that is no longer called by any agent:Entirely dead files
lib/agent-session.sh— tmux session management (create_agent_session, agent_inject_into_session, agent_kill_session, monitor_phase_loop). No active agent sources this file.dev/phase-handler.sh— phase dispatch callback for monitor_phase_loop. Only references tmux functions from agent-session.sh.Partially dead code in active files
lib/formula-session.sh— contains both dead tmux functions (agent_inject_into_session calls, monitor_phase_loop, formula_run_interactive at line ~850) AND active utility functions (check_memory, acquire_cron_lock, load_formula, resolve_agent_identity, profile functions). The dead tmux code should be removed; the utilities should stay.Test file referencing dead code
dev/phase-test.sh— tests the phase protocol using agent-session.sh. Should be updated or removed.Verification
No active agent script calls any tmux function:
Affected files
Acceptance criteria