github / github/app

Archived child sessions cannot be restored with their conversation history

Abierto
#2,990 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Sin datos de lenguaje
Estrellas
2.1k
Forks
153
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

## Summary

A coordinated child session repeatedly emitted identical idle notifications after completing its work. To stop the notifications, the parent agent archived the session. When asked to restore it, no restore tool was available. Opening the associated PR created a new session with the same branch but without the original conversation history.

## Steps to reproduce

1. Create a coordinated child session with `notify_on_idle: "always"`.
2. Let the child finish and become idle.
3. Observe repeated idle notifications across subsequent turns.
4. Archive the child session.
5. Attempt to restore it.
6. Call `open_pr_session` for its PR.

## Actual behavior

- Repeated notifications continue after the child is already idle.
- An `archive_session` tool exists, but there is no corresponding restore tool.
- `open_pr_session` creates a new session instead of restoring the archived one.
- The new session retains the branch and PR but not the original transcript.
- Context must be manually reconstructed and sent to the replacement session.

## Expected behavior

- Idle notifications should be deduplicated or stop after acknowledgment.
- Archiving should require explicit user confirmation when restoration is unavailable.
- A `restore_session` operation should restore the original workspace and transcript.
- Opening a PR with an existing archived session should offer to restore that session instead of silently creating a new one.

## Impact

The commits and pull request were preserved, but the active session history and working context were lost from the restored workspace. This created confusion and required a manual context handoff.

## Suggested safeguards

- Treat archiving as a user-directed lifecycle action rather than a notification-management mechanism.
- Warn that an archived session cannot currently be restored through agent tools.
- Deduplicate repeated idle notifications.
- Add an agent-accessible `restore_session` operation.
- Detect archived sessions associated with a pull request before creating a replacement session.

---
| Field | Value |
| --- | --- |
| App version | 1.1.10 |
| OS | macOS 26.6.1 |
| Theme | GitHub |
| Path | /chat |
| Tenure | Week 9 |

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza en el flujo /chat y sigue las operaciones archive_session y open_pr_session descritas en los pasos de reproducción. Compara su gestión de las sesiones archivadas, las ramas, los pull requests y el historial de la conversación con el comportamiento de restauración esperado. Done debe cubrir la deduplicación de notificaciones, una advertencia explícita sobre el archivado, la restauración de la transcripción original y la reapertura del PR sin crear silenciosamente una sesión de reemplazo.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Área
desktop
Tipo de issue
Error
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Activo
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.