Skip to content

feat: add thread rename command#157

Merged
lmjabreu merged 2 commits intomainfrom
feat/thread-rename
Apr 8, 2026
Merged

feat: add thread rename command#157
lmjabreu merged 2 commits intomainfrom
feat/thread-rename

Conversation

@lmjabreu
Copy link
Copy Markdown
Contributor

@lmjabreu lmjabreu commented Apr 8, 2026

Summary

  • Add tw thread rename <thread-ref> <title> subcommand to change a thread's title
  • Uses the SDK's existing threads.updateThread method
  • Follows the same patterns as mute/unmute (dry-run, JSON output, public channel assertion)

Changes

  • src/commands/thread/rename.ts — new handler with --dry-run, --json, --full support
  • src/commands/thread.ts — register the rename subcommand
  • src/lib/api.ts — add spinner message for threads.updateThread
  • src/__tests__/thread.test.ts — 4 tests (rename, dry-run, JSON minimal, JSON full)
  • README.md — add thread rename to usage examples

Test plan

  • npx vitest run src/__tests__/thread.test.ts — all 32 tests pass
  • Manual: tw thread rename <id> "New Title" --dry-run
  • Manual: tw thread rename <id> "New Title" --json

🤖 Generated with Claude Code

Copy link
Copy Markdown
Member

@doistbot doistbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Share FeedbackReview Logs

Comment thread src/commands/thread/index.ts
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>
@lmjabreu lmjabreu force-pushed the feat/thread-rename branch from 3e73fcf to e9c8b5c Compare April 8, 2026 16:05
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>
@lmjabreu lmjabreu merged commit 399094f into main Apr 8, 2026
4 checks passed
@lmjabreu lmjabreu deleted the feat/thread-rename branch April 8, 2026 16:27
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))
@doist-release-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.27.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants