goal: session started with /goal gets a truncated objective as its title, not a generated title
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- backend-api-design
Línea de trabajo
Lee packages/core/src/plugin/goal.ts alrededor de las líneas 411–418, donde el plugin de goal asigna el objetivo truncado como título de la sesión. Sigue cómo los primeros mensajes normales del usuario activan SessionTitle.generate y compáralo con el inicio sintético de goal. Actualiza el manejo del título para que una primera sesión /goal tenga un título de resumen generado. Después, verifica que la barra lateral o el encabezado ya no muestren el objetivo truncado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 230k
- Forks
- 31.3k
- Merge medio
- 5 h 44 min
- PR fusionados (30 d)
- 529
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de anomalyco/opencode
-
area/desktop type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
anomalyco/opencode#68437 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
cli: opencode models <provider> filter from v1 is rejected in v2 ("Unexpected positional argument")Posiblemente ocupada @nilparra-dev la tomó hoy. Abiertoarea/cli platform/macos type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
anomalyco/opencode#68364 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
area/tui platform/linux type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
anomalyco/opencode#68301 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Web UI: Pressing Ctrl+<key> with Caps Lock active triggers Ctrl+Shift+<key> shortcutsPosiblemente ocupada @saurabhbhoir456 la tomó hoy. Abiertoarea/web platform/windows type/bug version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
anomalyco/opencode#68237 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
-
area/desktop inference/go platform/macos type/bug version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
anomalyco/opencode#68121 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de anomalyco/opencode
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ranxianglei/billion-context#8319 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 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`Abiertobug repro-ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
mksglu/context-mode#1454 ·
-
pending triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
laststance/design-world#98 ·
Los mantenedores suelen responder en 1 día