Conversation
doistbot
reviewed
Apr 8, 2026
Member
doistbot
left a comment
There was a problem hiding this comment.
This PR introduces a helpful tw thread rename subcommand that allows users to quickly change a thread's title. The implementation smoothly follows existing command patterns by supporting dry-run execution and JSON output formatting. However, the SKILL_CONTENT object in src/lib/skills/content.ts needs to be updated with the new command's usage details to ensure the skill-sync CI check passes.
Add `tw thread rename <ref> <title>` to change a thread's title via the SDK's `threads.updateThread` method. Supports --dry-run, --json, and --full flags consistent with other thread subcommands. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3e73fcf to
e9c8b5c
Compare
Address PR review feedback — add rename command usage examples to the skill content so the skill-sync CI check passes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
scottlovegrove
approved these changes
Apr 8, 2026
doist-release-bot Bot
added a commit
that referenced
this pull request
Apr 8, 2026
## [2.27.0](v2.26.0...v2.27.0) (2026-04-08) ### Features * add thread rename command ([#157](#157)) ([399094f](399094f))
Contributor
|
🎉 This PR is included in version 2.27.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.
Summary
tw thread rename <thread-ref> <title>subcommand to change a thread's titlethreads.updateThreadmethodmute/unmute(dry-run, JSON output, public channel assertion)Changes
src/commands/thread/rename.ts— new handler with--dry-run,--json,--fullsupportsrc/commands/thread.ts— register therenamesubcommandsrc/lib/api.ts— add spinner message forthreads.updateThreadsrc/__tests__/thread.test.ts— 4 tests (rename, dry-run, JSON minimal, JSON full)README.md— addthread renameto usage examplesTest plan
npx vitest run src/__tests__/thread.test.ts— all 32 tests passtw thread rename <id> "New Title" --dry-runtw thread rename <id> "New Title" --json🤖 Generated with Claude Code