A failed delete keeps a resumed session stuck in Needs you as "Delete failed"
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start with Attention.swift, which the issue names as the place that prioritizes failed removals, and trace how resume, unpause, messages, and sb undone update a session’s removal record. Compare that behavior with rm-keep to identify the expected clearing behavior. Check the Keep tooltip and the sb rm command path for the two related issues; done means a live session no longer appears as "Delete failed" and the Keep action and command clear the failed removal.
Written by the indexing model from the issue text.
Description
A failed delete stays attached to a session after the session comes back to life. The session then shows "Delete failed" in Needs you, with Keep and Retry buttons, while it is actually working.
What happened to account-move-session:
- The session was marked done, then paused.
- A bulk delete of done sessions included it. The delete failed because the worktree had 7 uncommitted files.
- A day later the user unpaused it. It resumed
/go --yolo, committed its work, and opened a PR. - The session's
removalrecord still saidstate: failed, and Attention puts a failed removal ahead of everything else (Attention.swift, "Delete failed: …"). So the Inbox showed a live, working session as "Delete failed". The card's "Last reply" was the session's latest progress message, which had nothing to do with the failure.
Expected: when a session with a failed removal is resumed, unpaused, sent a message, or marked not done (sb undone), sbd drops the failed removal, as rm-keep does. The user didn't ask to delete a working session, and a stale failure should not hide its real state.
Two related problems:
- The Keep button's tooltip says "Keep the session in Done". For a session that is no longer done, Keep only clears the failed delete, so the tooltip describes the wrong thing. It could say "Cancel the delete and keep the session".
sbhas no command that does what Keep does.rm-keepis only reachable from the app and from insidesb rm --done, so a Manager or script can't clear a stuck failed delete. A command such assb rm --keep <session>would cover it.
- Dominant language
- Swift
- Stars
- 0
- Forks
- 0
- Avg merge
- 6h 15m
- Merged PRs (30d)
- 308
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from haacked/switchboard
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
haacked/switchboard#420 ·
Maintainers usually reply within 1 day
-
priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
haacked/switchboard#403 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
haacked/switchboard#395 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
haacked/switchboard#391 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 66/100
haacked/switchboard#419 ·
Maintainers usually reply within 1 day
All issues in haacked/switchboard
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Enzoo404/gravitybox#21 ·
Maintainers usually reply within 1 day
-
area: sidebar enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ZigaoWang/zigzag#351 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
manaflow-ai/cmux#46584 ·
Maintainers usually reply within 1 day
-
android:core ios:core
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day