Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

docs(lark): clarify source ids for batched and recovered runs (#10856)

Danila Katalshova7a9cecac9c6
diff --git a/apps/docs/content/docs/lark-bot-integration.fr.mdx b/apps/docs/content/docs/lark-bot-integration.fr.mdx
index b1ab067122..71d4d23550 100644
--- a/apps/docs/content/docs/lark-bot-integration.fr.mdx
+++ b/apps/docs/content/docs/lark-bot-integration.fr.mdx
@@ -63,7 +63,9 @@ C'est cette association qui permet à Multica de savoir de quel membre de l'espa
Ajoutez d'abord le bot au groupe, puis mentionnez-le avec `@Bot` et décrivez votre besoin. Le bot ne répond qu'aux messages qui le @mentionnent explicitement, et chaque exécution reçoit les derniers messages du groupe comme contexte.
-En message direct comme en groupe, le prompt de chaque exécution indique aussi les identifiants Feishu du message auquel il répond : `chat_id`, `chat_type`, `message_id`, le `thread_id` du sujet lorsque le message se trouve dans un sujet, et l'`open_id` de l'expéditeur. Ce sont des identifiants Feishu, pas Multica : un agent disposant de son propre accès à Feishu peut s'en servir pour retrouver le message ou la conversation d'origine. L'`open_id` n'est valable que dans l'application du bot connecté. Les identifiants que Multica n'a pas enregistrés sont omis.
+En message direct comme en groupe, le prompt de chaque exécution indique aussi les identifiants Feishu du message auquel il répond : `chat_id`, `chat_type`, `message_id`, le `thread_id` du sujet lorsque le message se trouve dans un sujet, et `sender_open_id` (l'`open_id` de l'expéditeur). Ce sont des identifiants Feishu, pas Multica : un agent disposant de son propre accès à Feishu peut s'en servir pour retrouver le message ou la conversation d'origine. L'`open_id` n'est valable que dans l'application du bot connecté. Les identifiants que Multica n'a pas enregistrés sont omis.
+
+Lorsque plusieurs messages sont regroupés dans une seule exécution, `message_id` désigne le dernier message de ce lot et `sender_open_id` son expéditeur. Lors de la récupération d'une ancienne exécution dans un sujet, `thread_id` peut être présent sans `message_id`.
### Créer une tâche
diff --git a/apps/docs/content/docs/lark-bot-integration.ja.mdx b/apps/docs/content/docs/lark-bot-integration.ja.mdx
index 2d9113293f..a42c8496f6 100644
--- a/apps/docs/content/docs/lark-bot-integration.ja.mdx
+++ b/apps/docs/content/docs/lark-bot-integration.ja.mdx
@@ -63,7 +63,9 @@ Bot にそのままメッセージを送ります。後続のメッセージは
Bot をグループへ追加し、`@Bot` に続けて依頼内容を入力します。Bot が応答するのは、明示的に @メンションされたメッセージだけです。実行時には、グループの直近の数件のメッセージもコンテキストとして渡されます。
-DM でもグループチャットでも、各実行のプロンプトには、応答対象メッセージの Feishu ID も含まれます。`chat_id`、`chat_type`、`message_id`、メッセージがトピック内にある場合はトピックの `thread_id`、送信者の `open_id` です。これらは Multica の ID ではなく Feishu の ID なので、独自に Feishu へアクセスできるエージェントは元のメッセージや会話を参照できます。`open_id` は接続中の Bot のアプリ内でのみ有効です。Multica が記録していない ID は含まれません。
+DM でもグループチャットでも、各実行のプロンプトには、応答対象メッセージの Feishu ID も含まれます。`chat_id`、`chat_type`、`message_id`、メッセージがトピック内にある場合はトピックの `thread_id`、`sender_open_id`(送信者の `open_id`)です。これらは Multica の ID ではなく Feishu の ID なので、独自に Feishu へアクセスできるエージェントは元のメッセージや会話を参照できます。`open_id` は接続中の Bot のアプリ内でのみ有効です。Multica が記録していない ID は含まれません。
+
+複数のメッセージが 1 回の実行にまとめられる場合、`message_id` はそのバッチの最後のメッセージを、`sender_open_id` はそのメッセージの送信者を示します。トピック内の過去の実行を復旧した場合、`message_id` がなくても `thread_id` が含まれることがあります。
### タスクを作成する
diff --git a/apps/docs/content/docs/lark-bot-integration.ko.mdx b/apps/docs/content/docs/lark-bot-integration.ko.mdx
index 8b7bd12b5e..186935ecd6 100644
--- a/apps/docs/content/docs/lark-bot-integration.ko.mdx
+++ b/apps/docs/content/docs/lark-bot-integration.ko.mdx
@@ -63,7 +63,9 @@ Bot에 바로 메시지를 보내면 됩니다. 연속된 메시지는 같은 Mu
먼저 Bot을 그룹 채팅에 추가한 뒤 `@Bot`과 요구 사항을 함께 작성합니다. Bot은 자신을 명시적으로 @멘션한 메시지에만 응답하며, 실행할 때 그룹의 최근 메시지 몇 개를 컨텍스트로 함께 가져갑니다.
-DM과 그룹 채팅 모두 각 실행의 프롬프트에는 응답 대상 메시지의 Feishu ID도 함께 나열됩니다. `chat_id`, `chat_type`, `message_id`, 메시지가 토픽 안에 있을 때의 토픽 `thread_id`, 보낸 사람의 `open_id`입니다. 이는 Multica ID가 아닌 Feishu ID이므로, 자체 Feishu 접근 권한이 있는 에이전트는 이를 사용해 원본 메시지나 대화를 조회할 수 있습니다. `open_id`는 연결된 Bot의 앱 안에서만 유효합니다. Multica가 기록하지 않은 ID는 포함되지 않습니다.
+DM과 그룹 채팅 모두 각 실행의 프롬프트에는 응답 대상 메시지의 Feishu ID도 함께 나열됩니다. `chat_id`, `chat_type`, `message_id`, 메시지가 토픽 안에 있을 때의 토픽 `thread_id`, `sender_open_id`(보낸 사람의 `open_id`)입니다. 이는 Multica ID가 아닌 Feishu ID이므로, 자체 Feishu 접근 권한이 있는 에이전트는 이를 사용해 원본 메시지나 대화를 조회할 수 있습니다. `open_id`는 연결된 Bot의 앱 안에서만 유효합니다. Multica가 기록하지 않은 ID는 포함되지 않습니다.
+
+여러 메시지가 하나의 실행으로 합쳐지면 `message_id`는 해당 묶음의 마지막 메시지를, `sender_open_id`는 그 메시지의 발신자를 가리킵니다. 토픽에서 이전 실행을 복구하면 `message_id`가 없어도 `thread_id`가 포함될 수 있습니다.
### 태스크 만들기
diff --git a/apps/docs/content/docs/lark-bot-integration.mdx b/apps/docs/content/docs/lark-bot-integration.mdx
index 3539416ae7..97b3795054 100644
--- a/apps/docs/content/docs/lark-bot-integration.mdx
+++ b/apps/docs/content/docs/lark-bot-integration.mdx
@@ -63,7 +63,9 @@ Message the Bot directly. Consecutive messages stay in the same Multica conversa
Add the Bot to the group first, then `@Bot` and describe what you need. The Bot only responds to messages that explicitly @-mention it, and each run includes the group's most recent messages as context.
-In both direct messages and group chats, each run's prompt also lists the Feishu ids of the message it answers: `chat_id`, `chat_type`, `message_id`, the topic's `thread_id` when the message is in a topic, and the sender's `open_id`. These are Feishu ids, not Multica ids, so an agent with its own Feishu access can look up the original message or conversation. The `open_id` is specific to the connected Bot's app. Ids Multica did not record are left out.
+In both direct messages and group chats, each run's prompt also lists the Feishu ids of the message it answers: `chat_id`, `chat_type`, `message_id`, the topic's `thread_id` when the message is in a topic, and `sender_open_id` (the sender's `open_id`). These are Feishu ids, not Multica ids, so an agent with its own Feishu access can look up the original message or conversation. The `open_id` is specific to the connected Bot's app. Ids Multica did not record are left out.
+
+When several messages are combined into one run, `message_id` identifies the last message in that batch and `sender_open_id` identifies that message's sender. A recovered older topic run may include `thread_id` without `message_id`.
### Create an issue
diff --git a/apps/docs/content/docs/lark-bot-integration.zh-Hant.mdx b/apps/docs/content/docs/lark-bot-integration.zh-Hant.mdx
index 665ee8be9f..76e17e8250 100644
--- a/apps/docs/content/docs/lark-bot-integration.zh-Hant.mdx
+++ b/apps/docs/content/docs/lark-bot-integration.zh-Hant.mdx
@@ -63,7 +63,9 @@ Multica 靠這次繫結確認訊息來自哪位工作區成員。非成員無法
先把 Bot 加入群聊,再 `@Bot` 並寫下要求。Bot 只響應明確 @ 它的訊息,執行時會帶上群裡最近的幾條訊息作為上下文。
-無論私聊還是群聊,每次執行的提示詞還會列出所回覆訊息的飛書 ID:`chat_id`、`chat_type`、`message_id`、訊息在話題中時的話題 `thread_id`,以及傳送者的 `open_id`。這些是飛書的 ID,不是 Multica 的 ID;AI 代理如果有自己的飛書存取權限,可以用它們查到原訊息或對話。`open_id` 只在目前連線的 Bot 所屬應用內有效。Multica 沒有記錄到的 ID 不會出現。
+無論私聊還是群聊,每次執行的提示詞還會列出所回覆訊息的飛書 ID:`chat_id`、`chat_type`、`message_id`、訊息在話題中時的話題 `thread_id`,以及 `sender_open_id`(傳送者的 `open_id`)。這些是飛書的 ID,不是 Multica 的 ID;AI 代理如果有自己的飛書存取權限,可以用它們查到原訊息或對話。`open_id` 只在目前連線的 Bot 所屬應用內有效。Multica 沒有記錄到的 ID 不會出現。
+
+多則訊息合併為一次執行時,`message_id` 指向該批訊息中的最後一則,`sender_open_id` 指向這則訊息的傳送者。恢復話題中較早的一次執行時,即使缺少 `message_id`,也可能包含 `thread_id`。
### 建立任務
diff --git a/apps/docs/content/docs/lark-bot-integration.zh.mdx b/apps/docs/content/docs/lark-bot-integration.zh.mdx
index eba7e753ee..63f9fb219d 100644
--- a/apps/docs/content/docs/lark-bot-integration.zh.mdx
+++ b/apps/docs/content/docs/lark-bot-integration.zh.mdx
@@ -63,7 +63,9 @@ Multica 靠这次绑定确认消息来自哪位工作区成员。非成员无法
先把 Bot 加入群聊,再 `@Bot` 并写下要求。Bot 只响应明确 @ 它的消息,执行时会带上群里最近的几条消息作为上下文。
-无论私聊还是群聊,每次执行的提示词还会列出所回复消息的飞书 ID:`chat_id`、`chat_type`、`message_id`、消息在话题中时的话题 `thread_id`,以及发送者的 `open_id`。这些是飞书的 ID,不是 Multica 的 ID;智能体如果有自己的飞书访问权限,可以用它们查到原消息或会话。`open_id` 只在当前连接的 Bot 所属应用内有效。Multica 没有记录到的 ID 不会出现。
+无论私聊还是群聊,每次执行的提示词还会列出所回复消息的飞书 ID:`chat_id`、`chat_type`、`message_id`、消息在话题中时的话题 `thread_id`,以及 `sender_open_id`(发送者的 `open_id`)。这些是飞书的 ID,不是 Multica 的 ID;智能体如果有自己的飞书访问权限,可以用它们查到原消息或会话。`open_id` 只在当前连接的 Bot 所属应用内有效。Multica 没有记录到的 ID 不会出现。
+
+多条消息合并为一次执行时,`message_id` 指向该批消息中的最后一条,`sender_open_id` 指向这条消息的发送者。恢复话题中较早的一次执行时,即使缺少 `message_id`,也可能包含 `thread_id`。
### 创建任务