goal: session started with /goal gets a truncated objective as its title, not a generated title
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- backend-api-design
Direzione di ricerca
Leggi packages/core/src/plugin/goal.ts intorno alle righe 411–418, dove il plugin goal assegna l’obiettivo troncato come titolo della sessione. Segui il modo in cui i normali primi messaggi dell’utente attivano SessionTitle.generate e confrontalo con l’avvio sintetico di goal. Aggiorna la gestione del titolo in modo che una prima sessione /goal riceva un titolo riassuntivo generato. Poi verifica che la barra laterale o l’intestazione non mostrino più l’obiettivo troncato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
Starting a new session with /goal <objective> as the first input gives the session a literal quote of the objective (truncated to 60 characters) instead of a generated title. Because the goal kickoff is stored as a synthetic message rather than a user message, the title agent never names the session.
Environment
- opencode version: 2.4.4
- Client: Desktop
- Model and provider: ollama-cloud/deepseek-v4.1-flash
- OS: Windows 10.0.19045 (win32 x64)
- Terminal: Not relevant (Desktop)
- Shell: Not relevant (Desktop)
- Install/channel: latest
- Active plugins: none found (MCP server
ollama-web-searchconfigured)
Reproduction
- Open OpenCode Desktop and create a new session.
- As the very first input, run
/goal <objective>with any objective, e.g./goal Ship the release and update the changelog. - Let the goal kickoff start and look at the session title in the sidebar/header.
Expected Behavior
The session should receive the same short, model-generated summary title it would receive from a normal first user prompt.
Actual Behavior
The title is a literal quote of the /goal objective, truncated to 60 characters with … for longer objectives. It is never regenerated, even after the goal has been running.
Additional Context
Root cause is in packages/core/src/plugin/goal.ts:411-418: when the session still has the root fallback title, the goal plugin explicitly sets title: truncate(text, 60), with the comment that titles come from the first user message and the notice kickoff is not one. Since the kickoff is synthetic, SessionTitle.generate never produces a title from a user message for that session.
Frequency: deterministic; always happens when /goal is the first input.
Related: #61332 mentions the same title side effect while reporting that the goal objective is missing from the timeline; this issue tracks the title behavior itself.
Workaround: rename the session manually, or send a normal message before running /goal.
- Lingua principale
- TypeScript
- Stelle
- 230k
- Fork
- 31.3k
- Merge medio
- 5h 44m
- PR unite (30g)
- 529
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la 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 anomalyco/opencode
-
area/desktop type/feature version/v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
anomalyco/opencode#68437 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
cli: opencode models <provider> filter from v1 is rejected in v2 ("Unexpected positional argument")Forse già presa @nilparra-dev l’ha presa oggi. Apertaarea/cli platform/macos type/feature version/v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anomalyco/opencode#68364 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
area/tui platform/linux type/feature version/v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
anomalyco/opencode#68301 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Web UI: Pressing Ctrl+<key> with Caps Lock active triggers Ctrl+Shift+<key> shortcutsForse già presa @saurabhbhoir456 l’ha presa oggi. Apertaarea/web platform/windows type/bug version/v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
anomalyco/opencode#68237 · 6 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
area/desktop inference/go platform/macos type/bug version/v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
anomalyco/opencode#68121 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di anomalyco/opencode
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ranxianglei/billion-context#8319 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
JimLiu/open-artifact#126 ·
-
Claude Code: replace stub has no cut cue, a 6128 B Bash output reads as the one line `END6000`Apertabug repro-ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
mksglu/context-mode#1454 ·
-
pending triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
laststance/design-world#98 ·
I maintainer di solito rispondono entro 1 giorno