Repository navigation
Conversation
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
Deploying classworks with
|
| Latest commit: |
b5a2f2f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c663e4e5.classworks.pages.dev |
| Branch Preview URL: | https://copilot-add-json-polling-ser.classworks.pages.dev |
…nd improve logging Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add JSON polling server for classworks provider
Add server failover for classworkscloud provider
Jan 19, 2026
Member
|
@copilot 你执行了npm lint,不要执行,撤销npm lint产生的修改提交 |
Copilot stopped work on behalf of
Sunwuyuan due to an error
January 19, 2026 11:25
Member
|
@copilot 重试 |
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.
Implements automatic failover across multiple servers for the
classworkscloudprovider to handle server outages. Server list:kv-service.houlang.cloud→kv-service.wuyuan.dev.Changes
src/utils/constants.js(new): Centralized server address listsrc/utils/providers/kvServerProvider.js: AddedrequestWithFailover()wrapper that retries requests across all servers on failure. Updated all API methods (loadData,saveData,loadKeys, etc.) to use failover.src/utils/dataProvider.js: UpdatedgetKeyCloudUrl()to use active server from failover listsrc/utils/settings.js: Import server list from constantsBehavior
For
classworkscloudprovider:Other providers (
kv-server,kv-local) continue usingserver.domainsetting unchanged.Server rotation
State tracked in module-level
currentServerIndex. Cycles through servers on failure, logs warning on switch. To update servers, editCLASSWORKS_CLOUD_SERVERSarray inconstants.js.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.