Repository navigation
fix(desktop): show a ChatGPT sign-in that is still running when Settings opens again - #151
Conversation
…ngs opens again The bridge's chatgpt gets isSigningIn() and waitForSignIn(), so a Settings row or wizard step opened again during a sign-in shows its waiting button and Cancel and takes its answer. A login that exits while a child keeps its output open is answered 5 s after the exit instead of at the 330 s limit.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
What & why
Follow-up to #144.
chatgptgets two members,isSigningIn()andwaitForSignIn()(the running sign-in's end, ornullat once when none runs; it opens nothing), answered only for the UI's own origin. When the row mounts it asks both and shows a running sign-in with its waiting button and Cancel, then takes its answer the way a sign-in started there does. An app without the two members keeps today's row.EvoSci login chatgpt --jsonexited without a terminal line while a child process kept its output open, the sign-in was answered only at the app's 330 s limit, and every new sign-in joined it until then. The output is now read for at most 5 s after the exit; the run then answerscancelledafter a cancel, elseinternal_error, and keeps a terminal line that arrives within those 5 s.Known limits:
Manual testing
npm run lint && npm run format:check && npm run buildall greennpm run build && npm start; dev and standalone behave differently)Test steps / screenshots
Desktop app from this branch (
npm run buildat the root, thencd desktop && npm start), core 0.4.4. A real ChatGPT account is needed for the rows marked ★. Tested on macOS: every row passes, and after row 4 a saved ChatGPT plan answered a chat. Rows 1 to 3 were also run in a scripted Electron session against the released core; with the WebUI's hook frommain, rows 1 to 3 fail there (the row shows Sign in, and the login keeps port 1455).lsof -iTCP:1455shows nothingChecklist
Summary by CodeRabbit