Skip to content

Fix: bare except, duplicate TaskStatus, and shell quoting#7

Open
avi8or wants to merge 1 commit intopiercelamb:mainfrom
avi8or:fix/bugs-and-docs
Open

Fix: bare except, duplicate TaskStatus, and shell quoting#7
avi8or wants to merge 1 commit intopiercelamb:mainfrom
avi8or:fix/bugs-and-docs

Conversation

@avi8or
Copy link
Copy Markdown

@avi8or avi8or commented Mar 5, 2026

  • check_working_tree_status() has a bare except that catches everything and returns {"clean": True}. So if git isn't installed or something goes wrong, callers just think the tree is clean with no indication anything failed. Narrowed it to FileNotFoundError and added an error dict so the caller actually knows what happened.

  • TaskStatus is defined identically in both task_storage.py and impl_tasks.py. Consolidated into task_storage.py so there's a single definition to maintain.

  • Same shell quoting fix as deep-project — unquoted exports in capture-session-id.py break when paths have spaces in them.

All 146 existing tests pass plus 19 hook tests.

- check_working_tree_status() has a bare except that catches
  everything and returns {"clean": True}. So if git isn't installed
  or something goes wrong, callers just think the tree is clean with
  no indication anything failed. Narrowed it to FileNotFoundError and
  added an error dict so the caller actually knows what happened.

- TaskStatus is defined identically in both task_storage.py and
  impl_tasks.py. Consolidated into task_storage.py so there's a
  single definition to maintain.

- Same shell quoting fix as deep-project — unquoted exports in
  capture-session-id.py break when paths have spaces in them.

All 146 existing tests pass plus 19 hook tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant