Skip to content

fix(show): mark Trash items in the --agent brief and drop refused writes - #473

Open
ryanlewis wants to merge 1 commit into
mainfrom
claude/optimistic-johnson-itptci
Open

ryanlewis wants to merge 1 commit into
mainfrom
claude/optimistic-johnson-itptci

Conversation

@ryanlewis

Copy link
Copy Markdown
Owner

Symptom

things show <ref> --agent on an item in the Trash (or a task whose project is in the Trash) printed:

- Status: open

Nothing in it said the item was in the Trash. Its "Closing out" block then offered things edit <uuid> --notes …, things complete <uuid> and things cancel <uuid>, along with the promise that "a zero exit means it landed". The CLI refuses all three on such an item with trashed before sending anything, so an agent given the brief read a trashed item as ordinary open work and every write command it was handed exited non-zero. The plain show block already says Open (in Trash), and docs/content/agents.md says show marks such items, so only the brief had drifted.

Fix

  • The brief's status line now reads open (in Trash), or open (in Trash with its project) for a task whose project is in the Trash.
  • For those items the closing-out block keeps only the commands that still work: show --json, plus show <task> --agent for a trashed project's tasks. It says why edit/project edit, complete and cancel are gone, and to put the item back from the Trash in Things first.
  • The new TestPrintAgentBriefTrashed covers a trashed task, a task in a trashed project and a trashed project. It failed before the fix.
  • internal/skill/SKILL.md and docs/content/agents.md describe the new behaviour.

make test passes. golangci-lint run ./... reports 0 issues; I ran it with a golangci-lint built on go1.26, because the preinstalled one was built on go1.25 and wouldn't load the config.

🤖 Generated with Claude Code

https://claude.ai/code/session_013sKKzr9eBta5jLXe653hoF

Ran as part of a weekly bughunt routine.


Generated by Claude Code

`things show <ref> --agent` on an item in the Trash, or a task whose
project is, printed `Status: open` with nothing to say where it was, and
its closing-out block offered `edit`, `complete` and `cancel`, all of
which the CLI refuses with `trashed`. The status line now carries
"(in Trash)" as the plain show block does, and the brief offers only the
read-back commands with a note on restoring the item in Things.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013sKKzr9eBta5jLXe653hoF
@ryanlewis ryanlewis added fix Bug fix bughunt Found by the weekly bughunt routine labels Nov 21, 2026 — with Claude

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bughunt Found by the weekly bughunt routine fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants