Skip to content

Keep beams - #1069

Open
dagelf wants to merge 2 commits into
enricoros:mainfrom
dagelf:main
Open

Keep beams#1069
dagelf wants to merge 2 commits into
enricoros:mainfrom
dagelf:main

Conversation

@dagelf

@dagelf dagelf commented Apr 18, 2026

Copy link
Copy Markdown

This change makes completed Beam outputs durable without polluting the conversation history.

Before this, Beam only kept its intermediate/completed ray and fusion results in the in-memory Beam store. A reload lost them, and they were absent from exports/backups unless the user explicitly accepted one back into chat as a normal assistant message.

Now, completed Beam outputs are persisted as conversation side-data in conversation.beamResults, and that field is included in the existing conversation import/export path. That means:

  • completed Beam results survive reloads
  • they are included in backups/exports
  • they are still excluded from normal chat context because they are not added to conversation.messages

Runtime behavior is intentionally narrow:

  • only completed rays and completed fusion outputs are saved
  • in-flight Beam execution state is not persisted
  • accepting a Beam result into chat still behaves exactly as before and writes a normal assistant message into history
  • reopening Beam seeds the Beam UI from saved beamResults using the existing importRays path

I used codex with gpt-5.4.

@vercel

vercel Bot commented Apr 18, 2026

Copy link
Copy Markdown

@dagelf is attempting to deploy a commit to the Token Fabrics Pro Team on Vercel.

A member of the Team first needs to authorize it.

@dagelf

dagelf commented Apr 18, 2026

Copy link
Copy Markdown
Author

#1068

@dagelf

dagelf commented Apr 18, 2026

Copy link
Copy Markdown
Author

Works for me. There might be permutations I have not tried, and I'm not sure if it will affect other setups.
I've tried reloading, exporting, importing,

Closing beams with esc still wipes them. But that's the only way to wipe them now.

@dagelf
dagelf marked this pull request as ready for review April 18, 2026 13:34
@enricoros

Copy link
Copy Markdown
Owner

@dagelf Great patch with low lines of code, those are the best.

Do you also use the big-agi.com product, or are you comfortable using your fork here?

GitHub vs big-agi.com have different features set (common AI pipeline and most UI tho), in particular big-agi.com has a more sophisticated persistence scheduler that requires a different shape of the patch.

An official solution will need me to patch it on both places but also enable a few things that are related in the roadmap: 1. standalone Beams, 2. per-message Beams (so we can go back to a specific message and change our mind and pick another Beam variant), 3. Beams of other parameters such as permutations of Personas, and more.

If you're comfortable using your branch until then, then this patch is well done and the way to go. Just let me know if you need this on big-agi.com anytime soon as well.

@dagelf

dagelf commented Apr 24, 2026

Copy link
Copy Markdown
Author

You can try the CI, there's a good chance it won't break main, and at least beams will be recoverable from backups.

@vercel

vercel Bot commented May 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
open Ready Ready Preview May 30, 2026 12:48am

Request Review

@enricoros

Copy link
Copy Markdown
Owner

Note, this feature has not been landed yet.

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.

2 participants