BTW side tab disappears after visiting a subagent

Offen
#66,967 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
frontend

Rechercherichtung

The bug sits in how the shared side strip is reconciled when a subagent is routed: the issue points at Panel.list receiving the child session and the transient-panel cleanup then dropping the parent's btw:* tab. Start by reading those two functions and the per-session BTW storage they consult, then reproduce by running /btw, opening a subagent and returning. Done means the BTW tab and its answer survive the round trip through a subagent visit.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area/desktop platform/windows type/bug version/v2
Description

A /btw tab opens in the side panel, but after opening a subagent and returning to the parent session, the tab is gone and its answer is no longer reachable.

The parent and its subagent share the root shell tab's side strip. BTW stores its chats per routed session, so while the child is routed Panel.list receives the child session and reports the parent's btw:* tab as missing. The transient-panel cleanup then drops it from the shared strip.

Expected: the BTW tab and its answer stay in the shared strip across a subagent visit.

Plugins

None. Built-in /btw panel.

OpenCode version

0.0.0-dev-1349 (also present on current dev)

Steps to reproduce
  1. Open a session and run /btw <question>.
  2. Wait for the answer tab to appear in the side panel.
  3. Open a subagent from the timeline.
  4. Return to the parent session.
  5. The BTW tab is gone.
Screenshot

Can provide a recording if needed.

Operating System

Windows 10

Terminal

Desktop app

Vorherrschende Sprache
TypeScript
Sterne
230k
Forks
31.3k
Ø Merge
5 Std. 32 Min.
Gemergte PRs (30 T.)
453

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus anomalyco/opencode

Alle Issues in anomalyco/opencode

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.