Skip to content

Feature: Add thread rename support to Thread / Adapter interface #136

@arvinxx

Description

@arvinxx

Background

We're building an IM bot integration on top of Chat SDK where agents respond to @mentions in threads. After the agent replies, we'd like to rename the thread to a meaningful summary (e.g., the topic of the conversation), providing better UX for users browsing threads.

Current Behavior

The Thread interface has no method for updating the thread name. The Adapter interface also lacks any thread-rename capability.

Proposed API

Add a renameThread method to the Adapter interface and a convenience method on Thread:

// Adapter
interface Adapter {
  renameThread?(threadId: string, name: string): Promise<void>;
}

// Thread
interface Thread {
  setName(name: string): Promise<void>;
}

Platform Support

  • Discord: PATCH /channels/{thread.id} with { name } — supported natively
  • Slack: conversations.rename API — supported for channels/threads

Use Case

After an agent finishes processing a user's message, we want to set the thread name to a short summary of the conversation, making it easier for users to identify threads at a glance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions