Skip to content

fix(read_docs): ignore null doc entries#264

Open
Gujiassh wants to merge 1 commit intomondaycom:masterfrom
Gujiassh:fix/read-docs-null-guard
Open

fix(read_docs): ignore null doc entries#264
Gujiassh wants to merge 1 commit intomondaycom:masterfrom
Gujiassh:fix/read-docs-null-guard

Conversation

@Gujiassh
Copy link

Summary

  • treat docs: [null] the same as an empty read_docs result instead of falling through to an empty success payload
  • make the ids→object_ids fallback run when the first response only contains null entries
  • add regression coverage for both the fallback path and the final no-docs path with nullable doc results

Testing

  • npx jest src/core/tools/platform-api-tools/read-docs-tool/read-docs-tool.test.ts
  • npx eslint src/core/tools/platform-api-tools/read-docs-tool/read-docs-tool.ts src/core/tools/platform-api-tools/read-docs-tool/read-docs-tool.test.ts
  • npm run build

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant