[BTAPI-82] Remove the wealthsimple-api migration feature flag #96
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/BTAPI-82"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ticket
BTAPI-82 Remove the wealthsimple-api migration feature flag
Summary
WS_API_ENABLED/Config.wealthsimpleApiEnabledmigration flag and collapsed every dispatcher it gated (activity fetch, doorbell forward,/sync/status) onto the single wealthsimple-api path.client/,queries.ts), credit-card account discovery, the balance read, and their now-orphaned fixtures.assertWealthsimpleApiClientConfig()is now unconditional at boot.getSessionHaltReason()gate intick()was deleted outright, not just made conditional. Production bug it fixes: the local session died on 2026-09-28 and every sync was skipped as "dead" while wealthsimple-api was healthy./sync/statusis sourced solely from wealthsimple-api. The 503 /session: 'unreachable'contract is now live, so the app's banner (BTAPP-53) must handle it.lastResult/lastErrordescribe wealthsimple-api's job only; a stale localhaltedis no longer surfaced.WealthsimpleApiClientError(ordinary failure streak, no cooldown).ws:activitiesno longer prints a balance line.WS_API_ENABLED=truein the deployed.envis ignored and can be deleted.Left for BTAPI-78
auth/,discovery/,totp/,request/,login-cli/,lib/data/wealthsimple-session, theSessionDeadErrorhandling, the now-dormant 401/429 cooldown path in the sync engine, theGraphqlErrorplumbing inerrors.ts, andWS_EMAIL/WS_PASSWORD/WS_TOTP_SECRET.Manual checks still to run
POST /sync/wealthsimple)GET /sync/statusbun --cwd=./server run ws:activities🤖 Generated with Claude Code
https://claude.ai/code/session_018AmPhidGQpqS7QgKUdeZ7U