Repository navigation
Conversation
…#1061) A task id whose last 40 characters start with `-` was passed to `new-window -n` as an option: psmux exits 0 with no window and no id, and the session reads as crashed with an empty log. Strip the leading dashes in `task_window_name`, so the adapter and attach stay in step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. WalkthroughThe task window name function now strips leading dashes from the task ID’s final 40 characters. If the result is empty, it returns the full task ID. Parameterized tests cover the name length and dash handling. ChangesTask window name handling
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk:
|
Closes #1061.
Problem
runs.task_window_namereturnstask_id[-40:]. When that slice starts with-,new-window -n <name>reads the name as an option: psmux exits 0, prints nothing for-P -F, and creates no window. The empty window id then reads as a crashed session ("no work produced: dev session crashed", empty log). It is deterministic per story key, so the same story fails on every retry.Fix
Strip leading dashes in
task_window_name(falling back to the full id if nothing is left). The adapter (new-window -n) and the TUI attach (window lookup by name) both go through this function, so they stay in step.Tests
test_task_window_name_never_starts_with_a_dashintests/test_runs.py: two cases fail without the fix, all pass with it.tests/test_runs.py,test_generic_tmux.py,test_tui_launch.py,test_psmux_backend.pyandtest_multiplexer.pyshow the same 4 failures with and without this change (test_delete_run_refuses_a_redirected_run_dir[*],test_archive_run_refuses_a_redirected_runs_dir: redirected-dir setup on this machine). No new failures.ruffandblackare clean on the touched files; pyright error count on them is unchanged.🤖 Generated with Claude Code
Summary by CodeRabbit