Skip to content

fix: use roots filter when continuing last session#1559

Open
Ivaloz wants to merge 1 commit into
XiaomiMiMo:mainfrom
Ivaloz:fix/1484-auto-dream-continue
Open

fix: use roots filter when continuing last session#1559
Ivaloz wants to merge 1 commit into
XiaomiMiMo:mainfrom
Ivaloz:fix/1484-auto-dream-continue

Conversation

@Ivaloz

@Ivaloz Ivaloz commented Jul 4, 2026

Copy link
Copy Markdown

Fixes #1484 - Auto Dream session hijacks mimo -c (continue last session)

When using mimo -c (or --continue), the code now uses roots: true to filter root sessions only, and takes the first result (most recently updated). This prevents auto-dream/distill sessions from being selected as the last session since they have parentID set.

Previously, the code used .find((s) => !s.parentID) on unfiltered results, which could return sessions in unexpected order depending on the database query.

When using \mimo -c\ (or \--continue\), the code now uses \
oots: true\
to filter root sessions only, and takes the first result (most recently
updated). This prevents auto-dream/distill sessions from being selected
as the 'last session' since they have parentID set.

Previously, the code used \.find((s) => !s.parentID)\ on unfiltered
results, which could return sessions in unexpected order depending on
the database query.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto Dream 会话劫持 mimo -c(接续上次会话)

1 participant