fix: drop the auto_thread marker when a thread is rewritten (#29) #31
Reference in New Issue
Block a user
Delete Branch "fix/thread-draft-marker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #29.
UpdateThreadnow treats a rewritten title or motivation as an editorial pass and clears theauto_threadprovenance marker, recordinggroomed: trueand keeping the cluster/score/sources keys. Polished threads leaveknox_thread_draft.Tag-only edits do not count, so a thread can still be tagged without silently declaring itself groomed. Provenance that was never auto-generated is untouched.
Test
TestUpdateThreadClearsAutoThreadMarkercovers the retitle, motivation-only, tag-only and non-auto cases.go build ./... && go vet ./... && go test ./internal/db/pass.