fix: chore: remove dead tmux-based session code (agent-session.sh, phase-handler.sh) (#262) #265
No reviewers
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#265
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-262"
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?
Fixes #262
Changes
- Delete lib/agent-session.sh (entirely dead file with no active callers) - Delete dev/phase-handler.sh (entirely dead file with no active callers) - Update lib/formula-session.sh to remove tmux-based functions: - Removed: start_formula_session, run_formula_and_monitor, formula_phase_callback, write_compact_context, remove_formula_worktree, cleanup_stale_crashed_worktrees - Kept utility functions: acquire_cron_lock, check_memory, load_formula, profile_write_journal, formula_prepare_profile_context, build_graph_section, etc. - Update dev/phase-test.sh to inline read_phase() function (no longer sources agent-session.sh) - Update documentation: AGENTS.md, lib/AGENTS.md, dev/AGENTS.md, .woodpecker/agent-smoke.sh, docs/PHASE-PROTOCOL.md, lib/pr-lifecycle.sh - All 38 phase tests passAI Review — Error\n\nReview failed.\n---\n
7ad1c63AI Review
Summary
This PR deletes
lib/agent-session.shanddev/phase-handler.shas dead code (no active callers), strips tmux-based functions fromlib/formula-session.sh, and updates all downstream references. The scope is narrow and well-executed.Review
info
lib/formula-session.sh:757:cleanup_stale_crashed_worktrees()is listed as "removed" in the commit message but was actually kept as a thin backwards-compat wrapper aroundworktree_cleanup_stale(). The code and inline comment are correct; the commit message is slightly inaccurate. Not a bug.info
.codeberg/ISSUE_TEMPLATE/bug.yaml:30andfeature.yaml:26: Both still referencelib/agent-session.shin theirplaceholdertext. These are cosmetically stale but are display-only hints in the issue creation UI, not functional code — no functional impact.info
docs/AGENT-DESIGN.md:111/site/docs/architecture.html:515,522: These still mentionphase-handler.shandagent-session.sh. Pre-existing docs, not introduced by this PR. Worth a follow-up cleanup but not a blocker.dev/phase-test.sh: Correctly inlinesread_phase()after removing thelib/agent-session.shdependency. All 38 phase tests still pass per commit message..woodpecker/agent-smoke.sh: Correctly removeslib/agent-session.shfromLIB_FUNSloop andcheck_scriptcalls; the comment about whatcheck_script lib/formula-session.shrequires is accurate (no longer needs agent-session.sh in scope).lib/pr-lifecycle.sh: Comment-only change removing stale cross-reference todev/phase-handler.sh. Correct.No bugs, no security issues, no broken references in active code paths.
Verdict
APPROVE — Clean dead code removal — two files deleted, docs and smoke test accurately updated, no regressions introduced
Reviewed at
7ad1c63| AGENTS.mdAI Review: APPROVE — Clean dead code removal — two files deleted, docs and smoke test accurately updated, no regressions introduced