Skip to content

🤖 fix(tasks): forced task_remove report wording follow-ups from #8153 #8162

Open

Description

@ThomasK33

Follow-ups left open from #8153 (task_remove force). The maintainer asked to land only the major pains and leave the rest open. None of these loses work. Each makes the forced-removal report claim more or less than happened.

  1. Commits reported as deleted when the branch survives. WorktreeManager.deleteWorkspace() treats git branch -D as best effort: it skips the delete when the branch is checked out elsewhere and ignores a failed delete. The report still says the commits were deleted. Fix: return the branch-cleanup outcome and say the commits remain on the branch. Codex thread on 🤖 feat(tasks): let task_remove force-remove a sub-agent with unsaved work #8153, src/node/services/taskService.ts.
  2. A failed forced Docker removal names /src. DockerRuntime.getWorkspacePath() returns the in-container path, so the leftover warning tells the user to remove /src instead of the container. Fix: name the container, as WorkspaceService already does elsewhere. Codex thread on 🤖 feat(tasks): let task_remove force-remove a sub-agent with unsaved work #8153, src/node/services/workspaceService.ts.
  3. "may have deleted" also appears when the forced removal failed before deleting anything (mutation gate refusal, new attempt, stream-stop timeout). Fix: attach the report only when the runtime deletion ran.

Also open: #8155 (forced archive for workspaces an agent created) is not merged. #8161 tracks its round-4 findings.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $10.57

Activity

  1. self-assigned this
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions