tui3: trailing task and done events in turn demote settled assistant answer to raw plain workingProse
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 65/100
Piste de recherche
Read deriveWorkfolds and workEntry in internal/tui3/workfold.go, then trace assistantRows in internal/tui3/render.go, focusing on entryDone and entryTask near turn boundaries. Confirm the fix preserves intermediate rolling summaries while ensuring the terminal assistant entry reaches settledMarkdown and retains markdown rendering when asynchronous events follow it.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Problem
In the TUI chat surface (internal/tui3), settled final assistant answers frequently fail to convert into rendered markdown answers, staying trapped as unformatted plain text with raw markdown syntax (###, **bold**, backticks) indented as step narration under previous disclosure nodes instead of standing as clean rolling answers.
This is especially prominent in manager and team turns, but also occurs in standard chats whenever background tasks, worker notifications, or tool events land near the turn boundary.
Root Cause Analysis in Code
-
workEntryininternal/tui3/workfold.go(lines 525–533):
When classifying whether an assistant entryeis working narration (demoted = true) or a settled answer,workEntryfalls through to a forward scan:for at := i + 1; at < len(es) && es[at].turn == e.turn; at++ { if groupBreaks(&es[at]) { return false } ... if es[at].kind != entryDivider && es[at].kind != entryNote && !entryWithdrawn(&es[at]) { return true } }When background task completions (
entryDone, e.g.✖ ◆ manager permissions · incomplete · 34s) or task status entries (entryTask) append to the current turn after the assistant finishes speaking,workEntrytreats them as subsequent non-divider/non-note work and setses[i].demoted = true. -
assistantRowsininternal/tui3/render.go(lines 1372–1385):if e.demoted { e.feet = nil text := e.text if e.capHead && e.capCut > 0 && e.capCut <= len(text) { text = text[e.capCut:] } return append(tags, a.workingProse(text, width)...) } if e.settled { return append(tags, a.settledMarkdown(at, e, width)...) }Because
e.demotedwas set totrue, the assistant block never enterssettledMarkdown. It routes toworkingProse, which performs raw plain-text line-wrapping with zero markdown formatting. -
Missing workfold certification in
deriveWorkfolds(workfold.go:264–316):
In manager turns or turns whereblockedtriggers (such asteam_send,entrySeam, orasks), no workfold is constructed for the turn (foldsmap has no entry for the turn). Without a certifyingf.answer == iin a workfold, the forward loop inworkEntryruns and is tripped byentryDone/entryTask.
Expected Behavior
- When nothing is clicked in the transcript, intermediate steps collapse into clean rolling summary lines (
▸ headline ... duration), and the assistant's terminal answer renders below them throughsettledMarkdownwith full markdown formatting. - Asynchronous task completion cards (
entryDone), notifications, and background events appended to the turn must not demote the assistant's final response into intermediate working prose.
Drafted with CodeAF
- Langage dominant
- Go
- Étoiles
- 115
- Forks
- 14
- Merge moyen
- 9 h 44 min
- PR mergées (30 j)
- 775
Préparer son environnement
Nous n'avons pas encore vérifié les fichiers d'installation de ce projet. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Agent-Field/CodeAF
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Agent-Field/CodeAF#1679 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Agent-Field/CodeAF#1678 ·
Les mainteneurs répondent en général sous 1 jour
-
area:chat bug sev:papercut
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
Agent-Field/CodeAF#1592 ·
Les mainteneurs répondent en général sous 1 jour
-
codeaf do "" runs a paid job with an empty briefPeut-être pris @santoshkumarradha l’a pris il y a 3 jours. Ouvertearea:headless bug sev:critical
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Agent-Field/CodeAF#1566 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
area:chat feature
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Agent-Field/CodeAF#1510 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de Agent-Field/CodeAF
Issues similaires
-
agent-butler-finding chore
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
jordansmall/spindrift#4146 ·
Les mainteneurs répondent en général sous 1 jour
-
security
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
IBM/ibmcloud-volume-file-vpc#119 ·
-
security
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
IBM/networking-go-sdk#339 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
kubernetes-sigs/mcp-lifecycle-operator#439 ·
Les mainteneurs répondent en général sous 1 jour
-
area: global bug dx priority: low
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour