feat(app): add confirmation dialog before archiving session#24354
feat(app): add confirmation dialog before archiving session#24354herjarsa wants to merge 6 commits intoanomalyco:devfrom
Conversation
- Add SIGTERM handler in exit.tsx alongside existing SIGHUP handler - Add SIGTERM handler in thread.ts to gracefully stop worker - Add Effect.ensuring to abort AbortController in prompt.ts execRead - Replace unbounded Map with LRU cache in instance.ts (max 20 entries) Fixes anomalyco#15348 This addresses the critical issue where: 1. Processes spawned by opencode on Linux become orphaned when terminal closes 2. AbortController instances accumulate in session prompts causing heap growth 3. Instance cache grows without bound holding references to contexts Closes anomalyco#15348
…t_id not in stream When filterCompacted encounters a compaction part with tail_start_id pointing to a message older than available history, it previously included ALL messages in the result, causing context to inflate to 1.7M tokens instead of ~161k. This fix: 1. Tracks all messages in an 'all' array during iteration 2. When retain is set but not found, returns only the recent messages after retain was encountered (all.slice(-result.length)), not everything 3. Adds safety check in compaction.ts to skip overflow mode when selected.head is empty (which indicates tail_start_id is not in available history) Fixes anomalyco#24249
|
The following comment was made by an LLM, it may be inaccurate: Based on the search results, here are potential related PRs (excluding the current PR #24354): Related PRs:
These PRs are related to session archiving features but don't appear to be exact duplicates of the confirmation dialog feature. PR #24354 specifically adds a confirmation dialog before archiving (similar to |
- sst/opencode #24354 archive-confirmation dialog (request-changes: 6k lines of personal-tooling cruft + unrelated drive-bys + duplicated dialog component) - openai/codex #19650 AgentIdentity JWT verification (merge-after-nits: JWKS URL hardening, caching policy, nbf/max-lifetime/typ checks, typed init error) - aider #5052 bash repomap support (merge-as-is: strictly additive tree-sitter tags following established pattern)
Issue for this PR
Closes #
Type of change
What does this PR do?
Agrega diálogo de confirmación antes de archivar una sesión desde el timeline de mensajes. Sigue el mismo patrón que
DialogDeleteSessionque ya existía.How did you verify your code works?
TypeScript check passed (
bun tsc --noEmit).Screenshots / recordings
El diálogo muestra el nombre de la sesión y pide confirmación antes de archivar.
Checklist