Skip to content

fix: Settings Trinity Prompt copy — applies every turn, no restart (#3194) - #3195

Merged
vybe merged 1 commit into
devfrom
fix/3194-trinity-prompt-copy
Oct 3, 2026
Merged

vybe merged 1 commit into
devfrom
fix/3194-trinity-prompt-copy

Conversation

@trinity-ability

Copy link
Copy Markdown
Contributor

Summary

Corrects the Settings → Trinity Prompt help copy: the prompt is applied on every turn, not written into CLAUDE.md at agent startup, so changes take effect without an agent restart.

  • src/frontend/src/views/Settings.vue — copy update
  • src/frontend/tests/unit/trinityPromptCopy.spec.js — unit test pinning the copy

Closes #3194

🤖 Generated with Claude Code

…AUDE.md at startup (#3194)

The Settings → Trinity Prompt section still described the file-based
delivery retired in #136: "injected into all agents' CLAUDE.md at startup",
"existing agents need to be restarted". get_platform_system_prompt() reads
trinity_prompt on every chat/task turn and appends it under
"## Custom Instructions" after the platform instructions, so admins were
told to restart agents for nothing.

Copy only, no behaviour change:
- description: added to every agent's instructions each turn; applies from
  the next turn, no restart
- field help: drops CLAUDE.md
- "How it works": real order (platform instructions, then Custom
  Instructions), warns that a system manifest's top-level `prompt:` replaces
  the setting, and carries the fleet-rules-only / keep-it-short guidance

The recommended-prompt docs page (#3187/#3188) is not published yet, so
the box carries its guidance without a link.

Test: src/frontend/tests/unit/trinityPromptCopy.spec.js mounts Settings.vue
(jsdom, admin, General tab) and asserts on rendered text. Before the copy
change, 5 of 6 tests went red on the rendered strings (the sixth, the
section-renders guard, stays green by design so the negatives can't pass
against an unrendered page).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

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

merge-train: Lane B, validated. The copy matches platform_prompt_service.get_platform_system_prompt (read per turn by both the chat and task paths); the spec mounts Settings.vue and asserts rendered text, not source. Tier 1 green, dev green.

@vybe
vybe merged commit 304b3a0 into dev Oct 3, 2026
23 checks passed
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