Repository navigation
fix(search): return actionable live read errors and drop unreadable Confluence matches - #8888
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
All reported issues were addressed across 7 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
|
91d030c to
34529ec
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 8 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.
Turn on auto-fix | Re-trigger cubic
3354301 to
7a2d89a
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 8 files
Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.
Turn on auto-fix | Re-trigger cubic
…onfluence matches read_document collapsed every provider-side read failure into the generic 'Knowledge operation failed' because NativeSearchError escaped readLiveDocument unclassified. Reads now map a 404/410 to not_found with a search-again hint, a revoked grant to unauthorized naming the provider, and rate limits, 5xx, provider timeouts, MCP request timeouts and the read deadline to a retryable LiveReadError that the Assistant tool reports with retryable (and retryAfterSeconds) like search_workspace. Confluence search labeled every non-blogpost CQL hit a page, so native CQL matching attachments, comments, whiteboards, folders or databases produced references whose v2 page read 404s. Those kinds are now dropped and the page message says so.
…luence matches partial
7a2d89a to
3c25750
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 8 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.
Turn on auto-fix | Re-trigger cubic
Summary
read_documentturned every provider-side read failure into the generic "Knowledge operation failed", becauseNativeSearchErrorescapedreadLiveDocumentwithout being classified. Reads now return errors the model can act on:not_found, with a hint to search again or read a different result;unauthorized, naming the provider to reconnect;LiveReadError.read_documenttool now reportsretryable(andretryAfterSecondswhen set), the same waysearch_workspacedoes. The Search MCPread_documentreturns the classified message instead of the generic text.page. Native CQL that matched attachments, comments, whiteboards, folders or databases therefore produced references whose v2 page read returns 404. Those kinds are now dropped, and the result message says so.Test plan
application.test.ts: covers 404, reconnect, rate limit, 503 and MCP timeout. All five fail with the fix reverted.atlassian.test.ts: covers native CQL matches that a page read can't open. It fails with the fix reverted.🤖 Generated with Claude Code