Skip to content

fix(chat): persona models (Fréd/M Corpus/Mwen) speak only as themselves - #360

Merged
AVADSA25 merged 1 commit into
mainfrom
fix/persona-no-codec-prompt
Sep 16, 2026
Merged

AVADSA25 merged 1 commit into
mainfrom
fix/persona-no-codec-prompt

Conversation

@AVADSA25

Copy link
Copy Markdown
Owner

Persona models are talked TO, not through CODEC. The server built the persona prompt, then glued the frontend's generic "You are CODEC Deep Chat — J.A.R.V.I.S.-class AI…" system message on top and appended the FINAL-ANSWER scaffold (Think on). On a 4B: generic voice, attachment confabulation, and a stray <Final Answer> tag the UI stripper missed.

Fix: for a persona model (extra_models[].system_prompt*), REPLACE the client system message with the persona prompt (no concatenation) and skip _REASON_SCAFFOLD; strip <Final Answer> variants in the UI too. Operator/everyday model unchanged.

Requires pm2 restart codec-dashboard to take effect (Python route).

🤖 Generated with Claude Code

… no scaffold

Fréd / M Corpus / Mwen (config extra_models[].system_prompt*) are personas the
user talks TO. The server built their persona prompt correctly, then glued the
frontend's generic "You are CODEC Deep Chat — a J.A.R.V.I.S.-class AI…" system
message onto it and (Think on) appended the FINAL-ANSWER reasoning scaffold. On
a 4B that produced two conflicting identities: it answered in the generic voice,
confabulated an attachment it never read, and emitted a stray <Final Answer>
tag the UI stripper (### FINAL ANSWER only) never removed.

For a persona model: REPLACE the client system message with the persona prompt
instead of concatenating, and skip _REASON_SCAFFOLD. Also strip <Final Answer>
tag variants in the UI as defense-in-depth. Operator persona (everyday model)
unchanged — it still gets the CODEC prompt + scaffold + skills.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@AVADSA25
AVADSA25 merged commit 562737e into main Sep 16, 2026
1 check passed
@AVADSA25
AVADSA25 deleted the fix/persona-no-codec-prompt branch September 16, 2026 15:06
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.

2 participants