larksuite / larksuite/oapi-sdk-python
Feature Request: Add thread/topic title support in Reply Message API
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 559
- Fork
- 102
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Feature Request
API area: IM v1 — Messages / Threads
Problem
When creating threads (话题) in P2P (1:1) chats via the Reply Message API (POST /im/v1/messages/:message_id/reply with reply_in_thread: true), the resulting thread window always displays a generic title "话题" (Topic). There is currently:
- No parameter in the Reply Message API to set a custom thread title/name
- No dedicated API endpoint to update a thread's title after creation
- No way for users to edit thread titles in the Feishu PC/mobile client for P2P chats
This contrasts with 话题群 (topic groups), where topic titles are fully supported.
Use Case
We run a multi-agent AI assistant system built on the Feishu Open Platform. Each agent creates branched thread windows for parallel conversations via the Reply API. When a user has 5+ active threads with the same bot, they all show "话题" — making it impossible to distinguish between them without opening each one.
Proposed Solution
-
Add an optional
thread_namefield toReplyMessageRequestBodyfor the Reply Message API:{ "content": "...", "msg_type": "text", "reply_in_thread": true, "thread_name": "SSH Security Hardening" } -
Add a PATCH endpoint for updating thread titles:
PATCH /im/v1/threads/:thread_id { "name": "Updated Thread Title" } -
Enable client-side editing of thread titles in P2P chats (currently only available in topic groups).
Impact
Thread naming would significantly improve UX for bot-heavy workflows where users maintain multiple concurrent conversation branches. The thread_id (omt_*) infrastructure already exists — this request is about exposing title metadata for it.
Thank you for considering this enhancement.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia individuando la definizione della IM v1 Reply Message API e il relativo ReplyMessageRequestBody, quindi traccia il modo in cui i campi relativi ai thread sono rappresentati nell’SDK. Confronta il campo thread_name richiesto e l’operazione PATCH /im/v1/threads/:thread_id con la superficie API esistente; il lavoro è completato quando l’SDK espone le operazioni concordate per i titoli dei thread e i dati di richiesta corrispondenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100