Skip to content

fix(list_workspaces): suppress false next_page hints#259

Open
Gujiassh wants to merge 1 commit intomondaycom:masterfrom
Gujiassh:fix/list-workspaces-next-page-disclaimer
Open

fix(list_workspaces): suppress false next_page hints#259
Gujiassh wants to merge 1 commit intomondaycom:masterfrom
Gujiassh:fix/list-workspaces-next-page-disclaimer

Conversation

@Gujiassh
Copy link

Summary

  • stop emitting next_page when list_workspaces returns an unfiltered disclaimer payload that exactly matches the requested limit
  • keep next_page for the real in-memory filtered pagination path only
  • add a regression test covering the disclaimer path with limit equal to the returned workspace count

Testing

  • npx jest src/core/tools/platform-api-tools/list-workspace-tool/list-workspace-tool.test.ts
  • npx eslint src/core/tools/platform-api-tools/list-workspace-tool/list-workspace-tool.ts src/core/tools/platform-api-tools/list-workspace-tool/list-workspace-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