fix: drop the em dash from user-facing copy
Anti-slop audit-002, item 13 (R-02). Every em dash in text the user sees (web UI labels, toasts, tooltips, empty and error states, chat steps, API messages, notifications and channel replies) became a period, comma, colon or parentheses. Model prompts, logs, comments, regexes and the lone dash that marks an empty value are unchanged. Text the client matches against server copy (the default workspace summary, the quiet-night dream summary) accepts the old wording too, so cached and saved data still match.
This commit is contained in:
@@ -2208,7 +2208,7 @@ export async function buildLocalServer(config: Partial<LocalConfig> = {}) {
|
||||
return null;
|
||||
}
|
||||
|
||||
function markAnthropicProxyDegraded(detail = 'Built-in Anthropic proxy (API key invalid or expired — update in Settings > API Keys)'): void {
|
||||
function markAnthropicProxyDegraded(detail = 'Built-in Anthropic proxy (API key invalid or expired, update in Settings > API Keys)'): void {
|
||||
server.agentState.llmProvider.health = 'degraded';
|
||||
server.agentState.llmProvider.detail = detail;
|
||||
}
|
||||
@@ -2379,7 +2379,7 @@ export async function buildLocalServer(config: Partial<LocalConfig> = {}) {
|
||||
const keyValid = freshAnthropicValidation();
|
||||
if (keyValid === false) {
|
||||
llm.health = 'degraded';
|
||||
llm.detail = 'Built-in Anthropic proxy (API key invalid or expired — update in Settings > API Keys)';
|
||||
llm.detail = 'Built-in Anthropic proxy (API key invalid or expired, update in Settings > API Keys)';
|
||||
markAnthropicProxyDegraded(llm.detail);
|
||||
} else if (keyValid === null) {
|
||||
validateAnthropicKeyInBackground();
|
||||
|
||||
Reference in New Issue
Block a user