Skip to content

ACL tweaks for #666 #670

Closed
amillionbouncyballs wants to merge 1 commit into
e-dream-ai:fix-resume-busyloop-streaming-fallbackfrom
amillionbouncyballs:666-busyloop-review-tweaks
Closed

ACL tweaks for #666 #670
amillionbouncyballs wants to merge 1 commit into
e-dream-ai:fix-resume-busyloop-streaming-fallbackfrom
amillionbouncyballs:666-busyloop-review-tweaks

Conversation

@amillionbouncyballs

@amillionbouncyballs amillionbouncyballs commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Small follow-ups stacked on top of #666 (commit 47f25e9). Intended to be merged onto fix-resume-busyloop-streaming-fallback; the PR is based on that branch so the diff is just these tweaks.

  1. preflightNextDream now streams as a last resort when canStream=false and the cache is totally empty (the busyloop fix). The call-site comments and header doc still said "don't allow streaming", which is no longer accurate -- updated to reflect the fallback.

  2. JSONStorage::GetOrSetValue: on the write path, returning false on exception left the corrupt value in place, while the wrapper Set methods return true unconditionally -- so callers saw a "successful" write that never happened and the bad value was persisted into Finalise. Repair the slot in place via _emplace on the set path so it doesn't recur.

…r JSONStorage writes

Small follow-ups stacked on top of e-dream-ai#666 (commit 47f25e9). Intended to be
merged onto fix-resume-busyloop-streaming-fallback; the PR is based on that
branch so the diff is just these tweaks.

1. preflightNextDream now streams as a last resort when canStream=false and
   the cache is totally empty (the busyloop fix). The call-site comments and
   header doc still said "don't allow streaming", which is no longer accurate
   -- updated to reflect the fallback.

2. JSONStorage::GetOrSetValue: on the write path, returning false on exception
   left the corrupt value in place, while the wrapper Set methods return true
   unconditionally -- so callers saw a "successful" write that never happened
   and the bad value was persisted into Finalise. Repair the slot in place via
   _emplace on the set path so it doesn't recur.
@amillionbouncyballs amillionbouncyballs changed the title ACL tweaks for #666: document streaming fallback + repair JSONStor… ACL tweaks for #666: Jun 26, 2026
@amillionbouncyballs amillionbouncyballs changed the title ACL tweaks for #666: ACL tweaks for #666 Jun 26, 2026
@amillionbouncyballs amillionbouncyballs deleted the 666-busyloop-review-tweaks branch June 26, 2026 16:26
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.

1 participant