Skip to content

Feat/913 agent active brand - #970

Merged
gkhngyk merged 8 commits into
ansvisor:mainfrom
knockknock10:feat/913-agent-active-brand
Oct 8, 2026
Merged

gkhngyk merged 8 commits into
ansvisor:mainfrom
knockknock10:feat/913-agent-active-brand

Conversation

@knockknock10

Copy link
Copy Markdown
Contributor

Summary

Start new AI Agent conversations with the currently active brand as their default context.

The agent page now passes the active brand when creating a new conversation, and the chat API loads the persisted conversation brand when building the system prompt. The prompt uses that brand for unqualified questions while still allowing the user to explicitly ask about another brand.

The conversation API also validates that the supplied brand belongs to the authenticated organization.

Related issue

Closes #913

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

Checklist

Copilot AI balanced review requested due to automatic review settings October 8, 2026 04:15

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@gkhngyk gkhngyk 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.

Thanks @knockknock10! Clean change, and the organization check on brandId is a good addition.

@gkhngyk
gkhngyk merged commit e6022db into ansvisor:main Oct 8, 2026
5 checks passed
@knockknock10
knockknock10 deleted the feat/913-agent-active-brand branch October 8, 2026 13:04
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.

feat(agent): start new AI Agent chats on the active brand

3 participants