mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix(cursor): persist resume id early and return 409 for resume_unavailable (#745)
Remote cursor launcher now mirrors local launcher by writing cursorSessionId to hub metadata as soon as --resume is known, before the agent init event. POST /sessions/:id/resume maps resume_unavailable to 409 with clearer guidance. Fixes tiann/hapi#744 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -82,6 +82,9 @@ class CursorRemoteLauncher extends RemoteLauncherBase {
|
||||
};
|
||||
|
||||
let cursorSessionId: string | null = session.sessionId;
|
||||
if (cursorSessionId) {
|
||||
session.onSessionFound(cursorSessionId);
|
||||
}
|
||||
|
||||
while (!this.shouldExit) {
|
||||
const waitSignal = this.abortController.signal;
|
||||
|
||||
Reference in New Issue
Block a user