fix: polished auto-threads keep reappearing in the draft list #29

Closed
opened 2026-11-05 04:27:59 +00:00 by david · 0 comments
Owner

UpdateThread rewrites title/motivation/priority/tags but never touches provenance, so a thread created by AutoThreader keeps {"trigger":"auto_thread"} forever.

isAutoThreaded (internal/cmd/thread.go) tests either that provenance marker or a motivation prefix of "Auto-detected", so every thread an agent polishes still shows up in knox_thread_draft and knox thread draft no matter how many times it is edited.

Observed today: 11 threads were retitled and given written summaries via knox_thread_groom, and all 11 still report as drafts — there is no way to say "this one has been groomed".

Expected

An editorial rewrite (explicit title or motivation) clears the auto_thread marker so the thread leaves the draft queue.

Notes

  • UpdateThread treats an empty string as "leave unchanged", so only a non-empty title/motivation should count as the groom signal.
  • Do not drop provenance wholesale: keep other keys (cluster name, score, sources, session_id) for the threads that carry them.
  • knox_thread_groom calls UpdateThread, so the fix covers both entry points.
`UpdateThread` rewrites title/motivation/priority/tags but never touches `provenance`, so a thread created by `AutoThreader` keeps `{"trigger":"auto_thread"}` forever. `isAutoThreaded` (`internal/cmd/thread.go`) tests either that provenance marker or a motivation prefix of "Auto-detected", so every thread an agent polishes still shows up in `knox_thread_draft` and `knox thread draft` no matter how many times it is edited. Observed today: 11 threads were retitled and given written summaries via `knox_thread_groom`, and all 11 still report as drafts — there is no way to say "this one has been groomed". ## Expected An editorial rewrite (explicit title or motivation) clears the `auto_thread` marker so the thread leaves the draft queue. ## Notes - `UpdateThread` treats an empty string as "leave unchanged", so only a non-empty title/motivation should count as the groom signal. - Do not drop provenance wholesale: keep other keys (cluster name, score, sources, session_id) for the threads that carry them. - `knox_thread_groom` calls `UpdateThread`, so the fix covers both entry points.
david closed this issue 2026-11-05 04:31:44 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: david/knox#29