Skip to content

Name the deployment's public URL in the connect-your-account refusal - #1022

Open
brAperia2025 wants to merge 2 commits into
yc-software:mainfrom
BR-Aperia-Development:feat/connect-account-link
Open

Name the deployment's public URL in the connect-your-account refusal#1022
brAperia2025 wants to merge 2 commits into
yc-software:mainfrom
BR-Aperia-Development:feat/connect-account-link

Conversation

@brAperia2025

@brAperia2025 brAperia2025 commented Sep 9, 2026

Copy link
Copy Markdown

When an org enables individual model auth, an unconnected person's first message is refused with directions to "the web app" — but the refusal is usually read on a chat surface where nothing says where the web app lives, so the person has no path to follow.

The refusal now names the deployment's configured public URL: "…Connect Claude or ChatGPT at https://qm.example.com, then try again." The message moves to a pure helper (connectAccountMessage) beside the routing logic, publicUrl is plumbed through OrchestratorDeps from the existing config field, and deployments without a configured public URL keep an equivalent of the old wording. Covered by a unit test on both shapes.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

When an org requires individual model auth, an unconnected person's first
message is refused with directions to 'the web app' — but the refusal is
often read in Slack, where nothing says where the web app lives. Build the
message from the deployment's configured public URL so it names the exact
address; the wording without a configured URL is unchanged in substance.

The message moves to a pure helper (connectAccountMessage) beside the
routing logic, with the URL plumbed through OrchestratorDeps from config.
A failed turn reaches the person wrapped in the generic 'something went
wrong on my end' copy, so the connect instructions (and the URL) never
reached them. A refusal's reason is delivered verbatim — the same route the
session-busy and security-quarantine copy already takes.
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