Skip to content

fix(cancel): route projects through project-capable AppleScript - #125

Merged
ryanlewis merged 1 commit into
mainfrom
fix-cancel-project
Aug 8, 2026
Merged

fix(cancel): route projects through project-capable AppleScript#125
ryanlewis merged 1 commit into
mainfrom
fix-cancel-project

Conversation

@ryanlewis

Copy link
Copy Markdown
Owner

Second of the v0.5.1 scout findings.

things cancel <project> resolved the reference then unconditionally called CancelTask, whose AppleScript addresses to do id "<uuid>" — which cannot name a project — so cancelling a project died with a raw osascript error. complete has had the proper project branch (via project id) all along; cancel never got one.

  • New things.CancelProject, mirroring CompleteProject
  • CancelCmd now branches on model.TypeProject with the same interactive confirmation complete uses (cancelling cascades to the project's tasks)
  • Tests: AppleScript script-shape test + cmd-layer tests proving both project branches route through confirmation
  • SKILL.md + README updated (cancel works on projects; confirmation noted)

Ride-alongs:

  • show/complete/cancel help now documents the numeric-index reference form (resolveTask has always accepted it; only edit said so)
  • things projects gains the -a short flag for --area, matching list/open

things cancel <project> resolved the reference then unconditionally
called CancelTask, whose AppleScript addresses 'to do id' — which cannot
name a project — so it failed with a raw osascript error. Add
CancelProject and mirror CompleteCmd's project branch, including the
interactive confirmation before cascading the cancellation.

Ride-alongs from the same review pass:
- document the numeric-index reference form in show/complete/cancel help
  (resolveTask has always accepted it; only edit's help said so)
- add -a short flag to 'things projects --area' for consistency with
  list/open
@ryanlewis
ryanlewis merged commit a0d068d into main Aug 8, 2026
7 checks passed
@ryanlewis
ryanlewis deleted the fix-cancel-project branch August 8, 2026 21:23
ryanlewis added a commit that referenced this pull request Aug 8, 2026
Release notes for v0.5.1. Merge after #123/#124/#125 — goreleaser reads
this file at tag time (`readFile .github/releases/v0.5.1.md`), so it
must be on main before the tag is pushed.
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