Skip to content

chore: add metadata key in new chat to filter out schedule chats - #1118

Open
harshil-2096 wants to merge 5 commits into
mainfrom
chore/hv/hide-scheduled-sessions-by-default-in-chat-history
Open

harshil-2096 wants to merge 5 commits into
mainfrom
chore/hv/hide-scheduled-sessions-by-default-in-chat-history

Conversation

@harshil-2096

@harshil-2096 harshil-2096 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes AGE-2528

Changes

How was this tested?

Checklist

  • I have read the contributing guidelines
  • pnpm build, pnpm test, pnpm typecheck, pnpm lint:ci, and pnpm format:check pass locally
  • Tests added/updated where it makes sense
  • No hand-edits to generated code (packages/trueforge-sdk, python/trueforge_sdk, .github/fern/openapi/openapi.json, docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge
  • Docs / .env.example updated if configuration or behavior changed

Note

Low Risk
Scoped to session list/create metadata in the UI layer; scheduled/API sessions remain accessible outside this history filter.

Overview
Chat History now shows only sessions started from the UI by tagging new chats with tfg.source: ui and applying that metadata filter when listing sessions.

The runtime contract gains optional metadata on create and list session requests; the harness adapter passes list metadata through as API query params (e.g. metadata[tfg.source]=ui). TrueForgeChatProvider stamps the constant on every wrapped createSession / listSessions call (alongside the existing create-agent filter). The shell merges caller metadata when adding create-agent flags so tags are not dropped.

Reviewed by Cursor Bugbot for commit 95b90b2. Bugbot is set up for automated code reviews on this repo. Configure here.

@changeset-bot

changeset-bot Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2ab3f07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@truefoundry/trueforge-ui Patch
@truefoundry/trueforge-assistant-ui-runtime Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread packages/trueforge-ui/src/containers/TrueForgeChatProvider.tsx
Comment thread packages/trueforge-ui/src/containers/TrueForgeChatProvider.tsx
@harshil-2096
harshil-2096 marked this pull request as ready for review October 27, 2026 06:15

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 95b90b2. Configure here.

Comment thread packages/trueforge-ui/src/containers/TrueForgeChatProvider.tsx

This branch has not been deployed

No deployments
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