Skip to content

Fix Board project loading when gateway is unavailable - #460

Open
Kaguya-19 wants to merge 1 commit into
OpenBMB:mainfrom
Kaguya-19:codex/fix-board-gateway-fallback
Open

Fix Board project loading when gateway is unavailable#460
Kaguya-19 wants to merge 1 commit into
OpenBMB:mainfrom
Kaguya-19:codex/fix-board-gateway-fallback

Conversation

@Kaguya-19

Copy link
Copy Markdown
Collaborator

Summary

  • add a bounded gateway wait for Board project/session reads
  • fall back to the local ~/.pilotdeck/projects index when the gateway is unavailable
  • keep chat/task execution dependent on the gateway while allowing the Board/history list to render
  • add a regression test for loading Board project data from disk when gateway connection fails

Verification

  • npm --prefix ui test -- projects.test.js pilotdeck-bridge.test.js routes/gateway.test.js routes/config.test.js
  • pnpm exec tsc -p tsconfig.json --noEmit
  • git diff --check
  • manually verified /api/projects and /api/projects/general/sessions?limit=2 return 200 when PILOTDECK_GATEWAY_URL points at an unavailable gateway
  • manually verified normal npm run dev gateway health and /api/projects return 200

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.

1 participant