Skip to content

Batch delete confirmation shows stale dirty/unpushed for stopped sessions #209

Description

@d0ugal

Summary

confirmBatch displays DIRTY and UNPUSHED columns from protocol.SessionInfo, but these fields are populated by the daemon's background refresh loop which explicitly skips non-running sessions.

Impact

This is especially risky for gr delete --stopped: stopped sessions can have dirty files or unpushed commits, but the batch confirmation table shows DIRTY no / UNPUSHED -. The user is misled about whether it's safe to delete.

Single-session confirmDelete does a live git check; batch delete does not.

Suggested Fix

Recompute dirty/unpushed state for matched sessions before displaying the confirmation table, or reuse confirmDelete-style live checks. Surface git check failures prominently.

Found during review tribunal audit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsize: SLocalized: a flag/field + handler, or a contained bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions