Sync interview config with backend account#64
Open
alpha5611331 wants to merge 2 commits into
Open
Conversation
Rename interviewConf.username/jobDescription -> fullName/context to match the backend's account fields, with a migration so existing installs keep their data on disk under the old keys. Add account.service.ts + IPC wiring to pull the account's interview config on login/remembered session and push edits from the configuration dialog to the new backend endpoint, replacing the purely-local electron-store save. Also aligns the dialog's input cap with the backend's real 128k limit (was hardcoded to 60k). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
interviewConf lived in the electron-store-backed RuntimeConfig, but the backend is now the durable store for it. Move it into the transient AppState (same pattern as credits/userRole/providedLLMModel) so it's only ever fetched from or pushed to the backend, never written to the local config file. Existing installs get any leftover local copy dropped on next launch. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
interviewConf.username/jobDescription->fullName/contextto match the backend's account fields (backend PR: PowerInterviewAI/backend#34)account.service.ts+ IPC wiring to pull the account's interview config on login/remembered session, and push edits from the configuration dialog to the new backend endpointinterviewConfout of the electron-store-backed config into the transientAppState(same pattern ascredits/userRole) so it's never written to local disk - the backend is now the only durable store, matching how this data is meant to sync across devicesTest plan
tsc -p tsconfig.electron.json --noEmitandtsc -b tsconfig.jsoncleaneslint src/main src/renderercleanvite buildsucceeds