task +comment: no way to @mention users in task comments (all mention syntaxes stored as literal text)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- cli, documentation
Direzione di ricerca
Start by reading the task +comment shortcut and the raw task comments create command in the Go source to see how content is built and sent, then compare against the Feishu Task v2 comment API schema to confirm whether any mention field (rich_content or an <at> tag) is accepted. Reproduce with a throwaway task by posting each syntax and reading it back with task comments list, as the issue does. Done means the lark-task skill and +comment reference state exactly what is and is not supported regarding mentions, with a --mention <open_id> flag only if the API turns out to accept one.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
There is no way to @mention a user in a task comment (or description) through lark-cli. Every mention syntax I tried is stored as literal text, so the mentioned user gets no mention notification. Comments written in the Feishu client with @mentions read back as @Name(...). That shows the backend supports mentions, but neither the CLI nor the documented Task v2 comment API seems to expose a way to write them.
Environment
- lark-cli 1.0.100 (latest release), Linux
- Feishu (China) tenant, user identity (
--as user) - Commands:
task +comment, and rawtask comments create(same result)
Reproduction
Using a throwaway task, I posted one comment for each candidate syntax, then read the comments back with task comments list:
| Content written | Read back as |
|---|---|
<at id=ou_xxx></at> test |
identical literal text |
<at id="ou_xxx"></at> test |
identical literal text |
<at user_id="ou_xxx">Name</at> test |
identical literal text |
@ou_xxx test |
identical literal text |
For comparison, a comment created in the Feishu client with a real @mention reads back through the same API as:
@Alice(ABC) @Bob(DEF) some text
rich_content is null on comments, and the task.comments.create schema only exposes a plain string content field.
According to #2359, comment content is rendered as Markdown in the client, and <x> spans are dropped. This makes the <at ...> attempts worse than a no-op: the mention markup disappears for readers, and the writer gets no error.
Why it matters
Agents and scripts use task comments to ask specific people for input, like "please confirm X". Followers do get a generic task-update notification. Without a real mention, though, the addressed person gets no targeted alert. The writer also has no way to know the mention failed.
Ask
Any of the following would help:
- If the Task v2 comment API accepts a mention format today (e.g. a
<at>-style tag or a structured field), document it intask +commentand add a--mention <open_id>flag (repeatable) to the shortcut. - If the API does not support it, state this explicitly in the
lark-taskskill and+commentreference. Also warn that<at ...>tags are stored literally and swallowed by the client's Markdown renderer. - Relay the feature request to the Task team: support mentions in comments through OpenAPI, consistent with IM messages (
<at user_id="ou_xxx"></at>) and the legacy task v1 Markdown module (<at id=open_id></at>).
Related: #2359 (Markdown rendering silently drops spans), #2284 (typed comment read API).
- Lingua principale
- Go
- Stelle
- 18.2k
- Fork
- 1.4k
- Merge medio
- 1g 3h
- PR unite (30g)
- 18
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
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.
Altre issue di larksuite/cli
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
domain/im
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
bug domain/doc
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
mail: all-ASCII draft bodies are hard-wrapped every 998 bytes, inserting newlines inside words and tagsForse già presa @linye157 l’ha presa 26 giorni fa. Apertadomain/mail
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
I maintainer di solito rispondono entro 1 giorno
-
auth: a 429 from the Token Endpoint during refresh deletes a still-valid loginForse già presa @linye157 l’ha presa 26 giorni fa. Apertabug domain/auth domain/im
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
larksuite/cli#2869 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di larksuite/cli
Issue simili
-
test_archive_is_downloaded_after_logout_login doesn't wait for the storage client after loginAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
list_issues and search_issues: inconsistent `fields` allow-lists (`html_url` rejected by list)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
github/github-mcp-server#3960 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
JuliusBrussee/caveman#1594 ·
I maintainer di solito rispondono entro 1 giorno
-
C-bug O-community X-blathers-triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
cockroachdb/cockroach#176264 · 1 commento ·
-
security trivy
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
kubefleet-dev/kubefleet#1068 ·
I maintainer di solito rispondono entro 3 giorni