Skip to content

Handle DeepSeek context recovery#1070

Merged
ErlichLiu merged 2 commits into
mainfrom
ErlichLiu/deepseek-compress
Jul 3, 2026
Merged

Handle DeepSeek context recovery#1070
ErlichLiu merged 2 commits into
mainfrom
ErlichLiu/deepseek-compress

Conversation

@ErlichLiu

Copy link
Copy Markdown
Collaborator

Summary

  • Root cause: resumed DeepSeek sessions can be rejected before Proma/SDK compaction runs because the provider limit is lower than the nominal 1M context.
  • Adds a DeepSeek auto-compact safety window and auto-recovers prompt_too_long resume failures by clearing stale SDK session IDs and rebuilding context from Proma history.
  • Persists and renders SDK compaction status, extracts session recovery prompt construction to reuse session-cleaner/Proma CLI guidance, and bumps affected package patch versions.

Validation

  • bun run typecheck
  • bun test packages/session-core/src/session-core.test.ts
  • git diff --check
ErlichLiu added 2 commits July 3, 2026 13:10
…mpress

# Conflicts:
#	apps/electron/package.json
#	apps/electron/src/main/lib/agent-orchestrator.ts
#	apps/electron/src/renderer/components/session-preview/SessionMiniMapPopover.tsx
#	packages/session-core/src/group.ts
@ErlichLiu ErlichLiu marked this pull request as ready for review July 3, 2026 09:26
@ErlichLiu ErlichLiu merged commit 14bcc48 into main Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant