Skip to content

feat(organization-search): list my chat history in the Organization Search block - #10548

Merged
waleedlatif1 merged 4 commits into
stagingfrom
feat/organization-list-my-chat-history
Dec 1, 2026
Merged

waleedlatif1 merged 4 commits into
stagingfrom
feat/organization-list-my-chat-history

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Adds List My Chat History to the Organization Search block: operation list_my_chat_history, tool organization_list_my_chat_history (effect: 'read'), the same use case as the Search MCP and Assistant tool of that name (feat(search): list your own chat history on Search MCP and in the Assistant #10537)
  • Runs as the workflow run's person through the executor organization delegation (feat(organization-search): run organization search tools in workflows as the run's person #10534); the chat history operation already admits executor. A run with no person (schedule, webhook, workspace API key) fails before any read
  • Block fields: Start Date (required), End Date, Include Answers, plus Max Results and Cursor shared with the other operations; output questions (oldest first) and nextCursor. Chat-history dates have their own fields because Search's dates are advanced and optional
  • Four-edit recipe: tool-ids.ts, tools/organization/list_my_chat_history.ts, tools/registry.ts, OPERATIONS in blocks/blocks/organization.ts; handler in lib/internal/organization-search/list-my-chat-history.ts; generated tool metadata regenerated

Type of Change

  • New feature

Testing

  • lib/internal/organization-search/execute-tool.integration.ts against real Postgres: a run lists its person's own questions and never a colleague's (red with executor removed from the operation); a scheduled run of either tool is refused with the no-person fault
  • lib/knowledge/application/chat-history.integration.ts still green
  • Unit suites: blocks, tools/organization, lib/internal
  • bun run generate, lint, check:tool-effects, check:integration-catalog, check:canvas-sentences, block registry check against origin/staging

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Dec 1, 2026 8:02am UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 15 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/blocks/blocks/organization.ts Resolved
@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The reviewed changes appear safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[High impact] The reviewed changes appear safe to merge.

Summary

Adds List My Chat History to Organization Search, using the workflow runner’s own access.

  • Organization Search workflows can list their own chat history.

Reviews (2) · Last reviewed commit: "fix(organization-search): chat history p..." · Reviewed by Greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 15 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 48fe21e into staging Dec 1, 2026
84 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 64715a4b Deployed Dec 1, 2026 by vercel[bot]
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