Skip to content

Session compaction drops the in-progress task: resumed session reports 'no pending work' #120

Backlog

Description

@probe528-maker

Environment

  • Factory desktop app 1.23.0 (auto-updated from 1.21.1 via in-app ShipIt on 2026-11-28; CLI reports 1.23.0)
  • macOS 27.2.1 (Build 26B131), Apple Silicon

What happened

  1. A long-running desktop session had accumulated many completed work items; context was close to full.
  2. The user dispatched a heavy web-research task. The session then performed several rounds of web searches whose tool results were large (full-page text, several thousand tokens per result).
  3. Automatic context compaction triggered mid-task.
  4. The generated summary captured all previously completed work and pre-existing follow-ups, but contained no mention of the in-progress research task — not as running, not as pending.
  5. On resumption, the agent read the summary and told the user there was no unfinished work. The task was silently lost.
  6. Recovery only happened because the user manually pasted a screenshot of the pre-compaction conversation showing the task in flight.

Expected

Compaction should preserve outstanding work — at minimum a line like "a task was dispatched and is unfinished" or the pending task/todo state — so the resumed session knows something is open.

Actual

The compaction summary omitted the in-progress task entirely. The resumed agent asserted "no pending items", treating the incomplete summary as authoritative.

Impact

Silent task loss, and worse than a crash in practice: the agent confidently reports nothing is pending, so the user gets no signal that anything was dropped unless they kept their own record. The trigger conditions (large tool outputs near context limit) are exactly the heavy-workload case where losing state hurts most.

Reproducibility

Not deterministically reproducible, but the trigger pattern is clear and repeatable in kind:

long session near the context limit + a task producing large tool outputs → auto-compaction fires mid-task → summary omits the in-progress task

Happened once in practice on 2026-11-29 on the versions above. Happy to provide the session screenshot and summary text privately if useful (they contain work content, so not pasting publicly).

Activity

  1. probe528-maker commented on Nov 29, 2026

    @probe528-maker
    Author

    Additional context from a community sweep (Reddit, HN, linux.do, GitHub):

    • No duplicate user reports found for this specific symptom — the in-progress task disappearing entirely from the compaction summary appears unreported so far.
    • However, this failure maps directly onto Factory's own evaluation framework. The December 2025 compression study defines a "Continuation" probe ("What should we do next?") where the structured approach scored 3.80/5, and artifact tracking scored 2.45/5 ("remains an unsolved problem"). The September 2026 follow-up states plainly: "A session that produces a fluent summary can still lose track of which files changed."

    This report is a concrete desktop-app instance of that documented weak dimension: the summary was fluent and captured all completed work, but the dispatched-and-running task did not survive into it, so the resumed agent asserted there was nothing pending.

    Related timing work: Factory-AI/droid-sdk-typescript#65 (mid-task auto-compaction checkpoints).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions