Skip to content

Fix dream cycle reverting probe-and-refine edits#39

Merged
asashepard merged 1 commit intomainfrom
fix/dream-cycle-revert
Apr 2, 2026
Merged

Fix dream cycle reverting probe-and-refine edits#39
asashepard merged 1 commit intomainfrom
fix/dream-cycle-revert

Conversation

@asashepard
Copy link
Copy Markdown
Collaborator

What

Fix dream cycle reverting probe-and-refine edits on subsequent runs. Four changes:

  • Preserve existing AGENTS.md as base instead of regenerating from scratch
  • Skip session-start dream when probe-and-refine just ran
  • Persist consumed suggestion keys to dream-state.json across sessions
  • Constrain dream prompt to only modify sections justified by corrections/suggestions

Why

On second run of aspectcode (or when session-start dream fires), probe-and-refine edits were lost
because renderAgentsMd() always regenerated from scratch, and the dream prompt aggressively pruned
"clutter" even with no corrections to justify it. Community suggestions also re-triggered every
startup since dismissal was in-memory only.

Changeset

  • I ran npm run changeset and committed the .changeset/*.md file (required for version bumps)

Testing

  • npm test --workspaces passes (69 tests)
  • npm run build --workspaces passes

@asashepard asashepard merged commit 054c4e6 into main Apr 2, 2026
2 checks passed
@github-actions github-actions bot mentioned this pull request Apr 2, 2026
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