Fix core-state poll logs and rewards timeout UX#1321
Fix core-state poll logs and rewards timeout UX#1321jwalin-shah wants to merge 1 commit intotinyhumansai:mainfrom
Conversation
|
Warning Rate limit exceeded
To continue reviewing without waiting, purchase usage credits in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Tested locally on a merge of Verdict: works as intended
Repro for the timeout path: monkey-patched Action item before mergeBranch needs (Tried to push the merge commit on your behalf via maintainer-edits but lacked write access to your fork — leaving it to you.) |
Summary
debug('core-state')failure diagnostics for development without console warning spam./rewards/merequest timeout and normalize timeout-style failures into an actionable retry message.Problem
[core-state] poll failedwarnings while the core state endpoint is unavailable./rewards/metimeout-style failures can surface as low-level network/client errors instead of a quiet, recoverable Rewards state.Solution
shouldWarnForBootstrapFailure()and use it to warn on attempts 1, 5, then every 5 failures thereafter while debug logs still include every failed attempt.rewardsApi.getMyRewards()request/failure handling to apply a 15s timeout and map timeout/abort/ERR_TIMED_OUTmessages to: “Rewards request timed out. Please check your connection and try again.”Submission Checklist
docs/TESTING-STRATEGY.md## Related— N/A: no feature ID row changed.docs/TESTING-STRATEGY.md)Closes #NNNin the## RelatedsectionImpact
Related
AI Authored PR Metadata (required for Codex/Linear PRs)
Linear Issue
Commit & Branch
codex/SYM-209-core-state-rewards-timeoutf113824af973abb8977bbd92cd8ae45ed69da3bbValidation Run
pnpm --filter openhuman-app format:check(via pre-push hook; passed)pnpm typecheck/pnpm --filter openhuman-app compile(passed)pnpm --dir app exec vitest run src/providers/__tests__/CoreStateProvider.test.tsx src/services/api/__tests__/rewardsApi.test.ts --config test/vitest.config.ts(13 passed)cargo fmt --manifest-path ../Cargo.toml --all --check(via pre-push hook; passed);cargo check --manifest-path src-tauri/Cargo.toml(via pre-push hook; passed with pre-existing warnings)cargo fmt --manifest-path src-tauri/Cargo.toml --all --checkandcargo check --manifest-path src-tauri/Cargo.toml(via pre-push hook; passed with pre-existing warnings)Validation Blocked
command:N/Aerror:N/Aimpact:N/ABehavior Changes
/rewards/metimes out.Parity Contract
Duplicate / Superseded PR Handling