Nav pt1: Make vis_throttle work out of the box#2108
Conversation
Greptile SummaryThis PR makes
Confidence Score: 4/5Safe to merge; the logic change is small and well-scoped, but the computed The refactor is clean and the intent is clear. The only outstanding concern is that multiplying an dimos/navigation/nav_stack/main.py — the Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["nav_stack_rerun_config(user_config, vis_throttle, default_max_hz)"] --> B["resolved = dict(user_config or {})"]
B --> C["setdefault: blueprint, pubsubs, visual_override, static"]
C --> D["Populate visual_override defaults"]
D --> E{agentic_debug?}
E -->|Yes| F["Add debug color overrides"]
E -->|No| G["Add normal color overrides"]
F --> H["resolved['visual_override'] = visual_override"]
G --> H
H --> I["Populate static defaults"]
I --> J["resolved.setdefault('max_hz', {})"]
J --> K["Iterate: set(visual_override) | set(resolved['max_hz'])"]
K --> L["each_entity: get(entity, default_max_hz) * vis_throttle"]
L --> M["return resolved"]
Reviews (6): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Pull request was closed
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
- Restore missing dict-comprehension assignment target and opening brace (P0: previous code was a SyntaxError, broke import of the whole module). - Iterate over union of visual_override and existing max_hz keys so caller-provided rate limits outside the default entity list survive (P1: previously silently dropped). - Fix typo in comment 'preveting' -> 'preventing' (P2). Addresses greptile comments on PR #2108.
Make
vis_throttlework even when max_hz isn't specified.Test with: