Repository navigation
feat(conversation): add tdc conversation mark-read - #147
Merged
scottlovegrove merged 3 commits intoDec 4, 2026
Merged
Conversation
doistbot
reviewed
Dec 4, 2026
doistbot
left a comment
Member
There was a problem hiding this comment.
Adds tdc conversation mark-read, built on the shared read-state runner so it behaves like thread mark-read (single/bulk refs, --stdin, --dry-run, --json rows, already-read handling), updates the reply-failure hint to match the thread equivalent, and covers the command in SKILL_CONTENT, SKILL.md, and docs/SPEC.md. No inline issues were flagged.
I also included a few optional follow-up notes in the details below.
Optional follow-up notes (3)
README.md:148: The README's usage list enumerates the other conversation subcommands (
done,undone,reply, etc.) but now omitstdc conversation mark-read, so the quick reference is missing a command people will look for there. Add a line alongsidetdc conversation done <ref> --yes.src/commands/conversation/mark-read.ts:8: This
MarkReadStatustype and theplanbelow (scope, isUnchanged, status, apply) are a near-verbatim copy ofmarkThreadReadinsrc/commands/thread/read.ts. The only real difference is how theobjIndexis computed. Since both now target the shared runner, consider moving the read plan and status type intosrc/lib/read-state.ts(e.g. a helper that takes alatestObjIndex(item)accessor on the entity) so a future mark-read change only has to be made in one place.src/commands/conversation/index.ts:201: This new guard (print help when no refs and no
--stdin) has no test.thread mark-readcovers the same path inthread.test.ts:2917; add the conversation equivalent so a regression here (falling through to the runner'sINVALID_REFor consuming piped stdin without--stdin) is caught. Assert stdout containsUsage: tdc conversation mark-readand thatclient.conversations.markReadwas not called.
scottlovegrove
force-pushed
the
scottl/conversation-mark-read
branch
from
December 4, 2026 14:44
ed71c5e to
141d352
Compare
Conversations had no way to be marked read from the CLI. `tdc
conversation mark-read` works like `tdc thread mark-read` on the shared
read-state runner: one or more refs (or --stdin), --yes for a bulk run,
--dry-run, a { id, isRead } row per conversation with --json, and
conversations that are already read left alone. It marks each one read
through its lastObjIndex.
`tdc conversation reply`'s warning when marking the reply read fails
now points at the new command.
scottlovegrove
force-pushed
the
scottl/conversation-mark-read
branch
from
December 4, 2026 14:49
141d352 to
4e078db
Compare
scottlovegrove
requested review from
a team and
frankieyan
and removed request for
a team
December 4, 2026 14:55
doist-release-bot Bot
added a commit
that referenced
this pull request
Dec 4, 2026
## [6.1.0](v6.0.1...v6.1.0) (2026-12-04) ### Features * **conversation:** add tdc conversation mark-read ([#147](#147)) ([bda7dcf](bda7dcf)) * **conversation:** add tdc conversation mark-unread ([#148](#148)) ([c9c02e8](c9c02e8)) ### Bug Fixes * mark the thread or conversation read when replying ([#144](#144)) ([e061f51](e061f51))
Contributor
|
🎉 This PR is included in version 6.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Conversations had no way to be marked read from the CLI: nothing called
conversations.markRead, andconversation donearchives without marking read. This addstdc conversation mark-read, built on the read-state runner from the PR below, so it behaves liketdc thread mark-read:--stdin(one per line,#lines skipped)--yes, and without it each is previewed withUse --yes to confirm.--dry-runpreviews;--jsonprints a{ id, isRead }row per conversationEach conversation is marked read through its
lastObjIndex. Messages name a titled conversation asTitle (id)and an untitled one by its id (Conversation 42 marked read.), since the line already says "Conversation".tdc conversation reply's warning when marking the reply read fails now points attdc conversation mark-read id:<id>, as the thread one does.SKILL_CONTENT, the regeneratedSKILL.mdanddocs/SPEC.mdcover the command.Checked against the real API with
--dry-runonly: an unread conversation came back as "would mark read", so the unread lookup matches prod. Nothing was actually marked read.