Pi extension on Oh My Pi: review feedback goes to an in-process subagent
Los mantenedores suelen responder en 1 día
Ya se ha fusionado un pull request relacionado.
- #2581 de @utpalsinghdev — fusionado
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 76/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- devtools
Línea de trabajo
Encuentra sendUserMessageWithCurrentSessionFallback y lee cómo elige actualmente entre la sesión de origen de la revisión y la sesión actual. Intenta enviar primero a través de la sesión de origen y usa la sesión actual como alternativa solo si eso provoca un error. Se considera terminado cuando los comentarios llegan al agente de origen de la revisión mientras hay activo un subagente de Oh My Pi, y siguen llegando a la nueva sesión después de /new.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happens. OMP runs task subagents in the same process, and loads each extension again for each subagent.
Each instance calls registerCurrentPiSession(pi) as it loads, and currentPiSession.update(ctx) at
session_start, so the latest subagent becomes globalThis.__plannotatorCurrentPiSession.current.
sendUserMessageWithCurrentSessionFallback first tries sendUserMessageToCurrentPiSession, and sends there when the
current session's runtime token is not the review's origin. Review, annotate, and last-message feedback that a
person sends while any subagent is live so goes to the subagent, with the header "This Plannotator feedback was
submitted from a browser tab opened before Pi switched sessions". The agent that opened the review gets nothing.
After OMP disposes of the subagent (its session_shutdown clears it), feedback goes to the right session again.
Steps. On OMP 18.13.3:
- Open an annotate review with the
plannotatortool. - Run one
tasksubagent and let it finish. It stays idle in memory fortask.agentIdleTtlMs, 7 min by default. - Send feedback from the review's tab. The subagent's conversation gets it.
Suggestion. Try the origin's own pi.sendUserMessage first, and fall back to the current session only when it
throws. Pi makes a replaced session's pi throw ("This extension ctx is stale after session replacement or
reload"), so the /new, /resume, and fork case still reaches the current session through the existing catch.
This is one deleted line, the first trySendUserMessageToDifferentCurrentSession call in
sendUserMessageWithCurrentSessionFallback, and it needs no knowledge of subagents. With it, feedback reaches the
agent that opened the review while a subagent lives on OMP, and a tab opened before /new on Pi still delivers to
the new session once.
Version: @plannotator/pi-extension 0.28.21, checked on Oh My Pi 18.13.3 (Pi 1.4.0 has no in-process subagents).
- Lenguaje dominante
- TypeScript
- Estrellas
- 8.7k
- Forks
- 649
- Merge medio
- 11 h 7 min
- PR fusionados (30 d)
- 862
Preparar el entorno
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 backnotprop/plannotator
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
backnotprop/plannotator#2914 ·
Los mantenedores suelen responder en 1 día
-
[Feature Request] shortcut for "send with a note"Posiblemente ocupada @ilyaZar la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
backnotprop/plannotator#2912 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
backnotprop/plannotator#2643 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
backnotprop/plannotator#2243 · 2 comentarios · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
Annotate documentation omits per-file version history and privacy controlsQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
backnotprop/plannotator#1086 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de backnotprop/plannotator
Issues similares
-
code-quality good-first-issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
OpenRailAssociation/netzgrafik-editor-frontend#1481 ·
Los mantenedores suelen responder en 1 día
-
bug implicit-state
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
area:models enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug frontend ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Recording drops clicks on links, filters and checkboxes that share a form with a search fieldPosiblemente ocupada @columbia11 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Tencent/BrowserSkill#657 ·
Los mantenedores suelen responder en 1 día