Fix decorator error messages to link to correct doc pages#2858
Conversation
WalkthroughThis pull request updates documentation reference URLs in error and help messages across two files. In the function prompt decorator, the error message URL is updated to point to the prompts section. In the local provider, three error/help message paths are modified to redirect users to more appropriate documentation anchors: the tool decorator now points to resources documentation, while two prompt-related code paths point to prompts documentation. These changes improve the accuracy of user-facing guidance without altering any functional behavior or control flow logic. 🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (1)**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (1)📚 Learning: 2026-01-12T16:24:54.978ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (5)
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 |
Test Failure AnalysisSummary: The loq file size check is failing because Update (2026-01-13 03:22 UTC): This PR was merged to main, and the static analysis is now failing on the main branch (workflow run #20943454244). The loq limit needs to be updated to unblock CI. Root Cause: This is a pre-existing issue, not caused by this PR. The file grew to 539 lines in commit 07d89c4 (PR #2836 - "Add transform system for modifying components in provider chains"). However, the loq limit wasn't updated at that time, and now the static analysis is catching the violation. Suggested Solution: Update the loq limit for this file in [[rules]]
path = "docs/development/v3-notes/v3-features.mdx"
max_lines = 539 # Update from 536 to 539Run uv run loq baselineDetailed AnalysisLog excerpt showing the failure: Why this is happening:
Related Files
|
Test Failure AnalysisSummary: The failing test is a flaky timing-based test unrelated to the PR changes. The test creates a JWT token with a 1-second expiration and expects it to be valid immediately, but the token expired between creation and verification. Root Cause: This is a race condition in the test itself. The test at creates a token with Suggested Solution: Increase the initial token lifetime in the test to provide a larger timing buffer. Change line 171 from Detailed AnalysisFrom the CI logs: The token was issued with expiration timestamp 1768274271 (now + 1 second), but by the time The test logic:
The JWT verification code at if exp and exp < time.time():
logger.debug("Token expired")
raise JoseError("Token has expired")This is a timing race condition where the test operations took slightly longer than expected. Related Files
Note: This test failure is completely unrelated to the PR changes, which only update documentation links in decorator error messages. |
Error messages for
@promptand@resourcedecorators were incorrectly linking to the tools documentation page. Now each decorator type links to its own "Using with Methods" section:@toolerrors →/servers/tools#using-with-methods@resourceerrors →/servers/resources#using-with-methods@prompterrors →/servers/prompts#using-with-methods