mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 08:13:37 +00:00
fix: replace magic numbers with named constants in polling logic
Address PR review feedback: - Use WS_ACTIVITY_THRESHOLD constant instead of hardcoded 10000 in agent-info-panel.tsx - Extract AGENT_OUTPUT_POLLING_INTERVAL constant for 5000ms value in use-features.ts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -117,7 +117,7 @@ export const AgentInfoPanel = memo(function AgentInfoPanel({
|
||||
}
|
||||
// If receiving WebSocket events, use longer polling interval as fallback
|
||||
if (isReceivingWsEvents) {
|
||||
return 10000;
|
||||
return WS_ACTIVITY_THRESHOLD;
|
||||
}
|
||||
// Default polling interval
|
||||
return 3000;
|
||||
|
||||
Reference in New Issue
Block a user