Skip to content

fix: Make agent name configurable - #1096

Merged
dcramer merged 2 commits into
mainfrom
fix/configurable-agent-name
Jul 28, 2026
Merged

dcramer merged 2 commits into
mainfrom
fix/configurable-agent-name

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Use the configured JUNIOR_BOT_NAME consistently in subscribed-thread routing and the dashboard instead of presenting every consumer as Junior.

Routing behavior

The subscribed-thread classifier prompt now names the configured assistant throughout, removing contradictory instructions that could degrade reply and unsubscribe decisions.

Dashboard identity

The core app passes botConfig.userName into the dashboard options. The dashboard normalizes that value once and safely embeds it in the server-rendered shell, making the same identity available to loading, error, and React client states without duplicating it in /api/config.

Dashboard copy, transcript labels, exports, auth metadata, and failure states all read that shell configuration, with Junior preserved as the standalone default. The dead per-transcript assistantLabel fallback is removed, and HTML plus inline-script escaping are covered for custom names.

Fixes #1066

Requested by David Cramer via Junior.

--

View Junior Session

@vercel

vercel Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Jul 28, 2026 6:43am

Request Review

@dcramer
dcramer marked this pull request as ready for review July 28, 2026 06:46
@github-actions github-actions Bot added the risk: high PR risk score: high label Jul 28, 2026
@dcramer
dcramer merged commit a9de226 into main Jul 28, 2026
33 checks passed
@dcramer
dcramer deleted the fix/configurable-agent-name branch July 28, 2026 07:00

This branch was successfully deployed

1 active deployment
Preview – junior-docs — f18b4b9b Deployed Jul 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent name is not configurable: dashboard hardcodes "Junior", and the Slack router prompt contradicts its own botUserName parameter

1 participant