Skip to content

Conversation

@cameronr
Copy link
Collaborator

@cameronr cameronr commented Nov 6, 2025

If we're not starting a new session, we don't have a current session and
we don't have a last session, we have to create a new session.

Without a session, submitting prompts fails silently.

Clean up the promise chains in server_job (they didn't really make sense since we don't return them and we don't need them anyway)

Also more type / diagnostic cleanup

@cameronr cameronr force-pushed the fix/server-job-cleanup branch from 90e22b3 to d67dc63 Compare November 6, 2025 02:03
If we're not starting a new session, we don't have a current session and
we don't have a last session, we have to create a new session.

Without a session, submitting prompts fails silently.
@cameronr cameronr force-pushed the fix/server-job-cleanup branch from d67dc63 to 7e5b03c Compare November 6, 2025 02:08
@cameronr cameronr changed the title fix(server_job): promise chain fix(core): create session if no current and no last Nov 6, 2025
@cameronr
Copy link
Collaborator Author

cameronr commented Nov 6, 2025

@sudo-tee I think this is now probably urgent. We weren't creating a session if you had no active_session and no previous sessions. We haven't noticed because we all have sessions but a new user (or working in a new project) will fail silently when you submit a response without this fix.

@sudo-tee
Copy link
Owner

sudo-tee commented Nov 6, 2025

Very nice fix.

I did a quick review and it all looks fine

@sudo-tee sudo-tee merged commit 3fd6e82 into sudo-tee:main Nov 6, 2025
5 checks passed
@cameronr cameronr deleted the fix/server-job-cleanup branch November 10, 2025 19:15
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