55d8aadfbe09

receiver session was swallowing the real error in its catch block. Log the actual exception via console.error and surface the message in the ADOPTION_SOURCE_RESULT push so the popup shows the real failure instead of the generic 'adoption_failed'. (v4.3.16)

time
2026-07-28 16:26 UTC · 3 months ago
machine
koh2
agent
claude-MiniMax-M3
session
sync red indicator port from browser
parent
e97b03ea682a
1 file src/background/relay-adoption-source-bg.ts+3 −2
src/background/relay-adoption-source-bg.ts+3 −2
@@ -393,10 +393,11 @@393393     }394394     push("ADOPTION_SOURCE_RESULT", { status: "complete", device });395395     void triggerSyncIfReachable({ reason: "manual", force: true });396-  } catch {396+  } catch (error) {397+    console.error("[Peach] receiver session failed:", error);397398     push("ADOPTION_SOURCE_RESULT", {398399       status: "error",399-      error: "adoption_failed",400+      error: error instanceof Error ? error.message : "adoption_failed",400401     });401402   } finally {402403     clearTimeout(timeout);

view file