fix: resolve final 4 bugs before convergence#81
Conversation
Bug fixes: - Aria2RpcClient.close(): completeError all pending completers with ConnectionFailedException before clearing (callers were hanging 10s then getting wrong TimeoutException instead) - TaskActionDialogs: fix double-counting in outer catch — subtract already-counted success/skipped from remaining tasks.length - TaskDetailsDialog: add outerContext.mounted guard before accessing outerContext.read<InstanceManager>() in timer callback (prevents crash if underlying page is disposed while timer fires) - BuiltinInstanceService._buildArgs: use _resolveEffectiveDhtListenPort for --dht-listen-port instead of raw settings value (ensures valid port range 1-65535 and handles String→int parsing, matching UPnP port resolution)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe PR adds four targeted defensive improvements: fixing task failure accounting when exceptions occur mid-batch, guarding async peer-fetch dialogs against disposed contexts, failing pending RPC requests on WebSocket close instead of hanging, and validating DHT port configuration through a resolver function. ChangesDefensive fixes and safeguards across UI and service layers
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
Bug fixes:
Summary by CodeRabbit
Bug Fixes