Skip to content

Sync interview config with backend account#64

Open
alpha5611331 wants to merge 2 commits into
mainfrom
alpha/task63
Open

Sync interview config with backend account#64
alpha5611331 wants to merge 2 commits into
mainfrom
alpha/task63

Conversation

@alpha5611331

@alpha5611331 alpha5611331 commented Jul 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Renames interviewConf.username/jobDescription -> fullName/context to match the backend's account fields (backend PR: PowerInterviewAI/backend#34)
  • Adds 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
  • Aligns the dialog's input cap with the backend's real 128k limit (was hardcoded to 60k)
  • Follow-up: moves interviewConf out of the electron-store-backed config into the transient AppState (same pattern as credits/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 devices

Test plan

  • tsc -p tsconfig.electron.json --noEmit and tsc -b tsconfig.json clean
  • eslint src/main src/renderer clean
  • vite build succeeds
  • Manual: log in on two devices/accounts, confirm profile/context saved on one shows up on the other

alpha5611331 and others added 2 commits July 14, 2026 12:01
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>
@alpha5611331 alpha5611331 linked an issue Jul 14, 2026 that may be closed by this pull request
@mchl7852
mchl7852 self-requested a review July 14, 2026 17:13
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.

Synchronize configuration settings for each account

1 participant