Use Gzipped version of navlink#20
Conversation
…d-NavLink@4ace5ed) - Move the fetching from buildscript to msbuild & download only once
📝 WalkthroughWalkthroughNavigation linkage data delivery switches from a raw JSON URL to a gzip-compressed GitHub release artifact. ChangesGzip release artifact migration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
Botbases/RSBot.Training/Bot/NavigationManager.cs (1)
119-129: ⚡ Quick winConsider adding a timeout for network resilience.
The
HttpClienthas no timeout configured, so a slow or unresponsive server could cause this operation to hang indefinitely. Since this is invoked from the UI (the "Update NavLink" button), a hung request would leave users waiting without feedback.♻️ Suggested fix
Log.Notify("Fetching navigation linkage data from GitHub..."); -using var client = new HttpClient(); +using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(30) }; using var response = await client.GetAsync(LinkageUrl);🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@Botbases/RSBot.Training/Bot/NavigationManager.cs` around lines 119 - 129, The HttpClient instance has no timeout configured, which can cause the operation to hang indefinitely on unresponsive servers and freeze the UI. Set the Timeout property on the client instance (created with new HttpClient()) to a reasonable TimeSpan value immediately after instantiation but before the GetAsync call to ensure the network request completes or fails within an acceptable timeframe.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@Botbases/RSBot.Training/Bot/NavigationManager.cs`:
- Around line 119-129: The HttpClient instance has no timeout configured, which
can cause the operation to hang indefinitely on unresponsive servers and freeze
the UI. Set the Timeout property on the client instance (created with new
HttpClient()) to a reasonable TimeSpan value immediately after instantiation but
before the GetAsync call to ensure the network request completes or fails within
an acceptable timeframe.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 5dc98818-7660-49d7-997e-e29b0a4c6c7b
📒 Files selected for processing (3)
Application/OasisBot/OasisBot.csprojBotbases/RSBot.Training/Bot/NavigationManager.csscripts/build.ps1
💤 Files with no reviewable changes (1)
- scripts/build.ps1
Summary by CodeRabbit
Release Notes