fix(memory-tree): rename window_days → time_window_days for query_global#2219
Conversation
query_global RPC and tool used as the field name, but DeepSeek (and some other providers) pass the parameter exactly as named in the JSON schema — which was . This mismatch caused parse errors on tool calls. - Rename QueryGlobalRequest::window_days → time_window_days - Update tool schema, description, and execute() to match - Update RPC test to use the new field name
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughRenames the time-window field from ChangesParameter Rename Across RPC and Tool Boundary
Embedded-core readiness timeout tuning
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ 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 |
# Conflicts: # src/openhuman/memory/tree/retrieval/rpc.rs
The 40 × 100ms = 4s loop was the failure timeout for the embedded core spawn (axum bind + ready signal). On cold CI Docker hardware that's not enough — ensure_running_falls_back_* tests (and the two that share the env_lock and cascade with PoisonError) were timing out on every Tauri Shell CI run, including on main. Bumped to 300 × 100ms = 30s. The loop short-circuits on ready, so this only widens the failure-to-fail window, not the success path.
# Conflicts: # app/src-tauri/src/core_process.rs
|
huge thanks @xinzhuwang-wxz, nailing that |
Problem
query_globalRPC usedwindow_daysinternally but the JSON schema exposedtime_window_days. DeepSeek (and some other providers) pass parameters exactly as named in the schema, causing parse errors:Solution
QueryGlobalRequest::window_daystotime_window_daysquery_global_rpc()to matchexecute()consistentlyTesting
Submission Checklist
AI Authored PR Metadata
Linear Issue
Commit & Branch
Validation Run
Validation Blocked
Behavior Changes
Parity Contract
Duplicate / Superseded PR Handling
Summary by CodeRabbit
window_daystotime_window_daysacross retrieval and tool implementations.