Skip to content

Add the experimental v2 session store to interactive fx - #1073

Merged
fazxes merged 2 commits into
mainfrom
fazxes/sessions-v2-interactive
Oct 1, 2026
Merged

fazxes merged 2 commits into
mainfrom
fazxes/sessions-v2-interactive

Conversation

@fazxes

@fazxes fazxes commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Honor --sessions-v2 and FX_SESSIONS_V2=1 in interactive fx: new sessions are saved as an append-only log in ~/.fx/sessions/v2/<id>/.
  • Resume v2 sessions with -c, --resume last, --resume <id> and the -r picker.
  • List v2 sessions in the session picker, and keep titles set with /rename.
  • Save each finished exchange while a turn runs. After a crash the turn comes back interrupted, and -c continues the session.
  • Keep images, fetched pages and command output for v2 sessions in ~/.fx/session-files/<id>/.
  • Show fx --sessions-v2 --resume <id> in the exit hint, and keep the flag when fx relaunches after an upgrade.
  • Leave subagents off in interactive fx while the flag is on.
  • List --sessions-v2 in fx --help.

Stacked on #1072.

@fazxes fazxes added the type: feature Adds a new user-facing capability label Sep 27, 2026
@fazxes
fazxes added this pull request to stack #1084 September 28, 2026 17:58
@fazxes
fazxes removed this pull request from stack #1084 September 28, 2026 18:00
@fazxes
fazxes added this pull request to stack #1085 September 28, 2026 18:39
@fazxes
fazxes force-pushed the fazxes/sessions-v2-interactive branch 2 times, most recently from b8d6545 to 42c5870 Compare September 28, 2026 21:11
@fazxes
fazxes force-pushed the fazxes/sessions-v2-interactive branch from 03c9eff to 8465ba0 Compare September 29, 2026 04:24
@fazxes
fazxes force-pushed the fazxes/sessions-v2-interactive branch from 8465ba0 to 639691a Compare September 29, 2026 05:41
@fazxes
fazxes force-pushed the fazxes/sessions-v2-interactive branch from 639691a to 6fddfe4 Compare September 30, 2026 22:11
@fazxes
fazxes marked this pull request as ready for review October 1, 2026 01:01
Base automatically changed from fazxes/sessions-v2-ask to main October 1, 2026 01:03
- Honor --sessions-v2 and FX_SESSIONS_V2=1 in interactive fx: new sessions are saved as an append-only log in ~/.fx/sessions/v2/<id>/.
- Resume v2 sessions with -c, --resume last, --resume <id> and the -r picker.
- List v2 sessions in the session picker, and keep titles set with /rename.
- Save each finished exchange while a turn runs. After a crash the turn comes back interrupted, and -c continues the session.
- Keep images, fetched pages and command output for v2 sessions in ~/.fx/session-files/<id>/.
- Show fx --sessions-v2 --resume <id> in the exit hint, and keep the flag when fx relaunches after an upgrade.
- Leave subagents off in interactive fx while the flag is on.
- List --sessions-v2 in fx --help.
- With FX_SESSIONS_V2=1, picking a session that another fx has open shows "This session is open in another fx" right away, as the v1 picker does, instead of freezing the app for two seconds first.
- Other resumes still wait up to two seconds for the session to be released.
@fazxes
fazxes force-pushed the fazxes/sessions-v2-interactive branch from 6fddfe4 to ca01d68 Compare October 1, 2026 01:03
@fazxes
fazxes merged commit 14893f6 into main Oct 1, 2026
55 of 56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature Adds a new user-facing capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant