Skip to content

Generalize composer trigger words and gate workflow by model#92

Merged
SDSLeon merged 2 commits into
masterfrom
lightcode/honest-pixel-2f37ac9f
Jun 2, 2026
Merged

Generalize composer trigger words and gate workflow by model#92
SDSLeon merged 2 commits into
masterfrom
lightcode/honest-pixel-2f37ac9f

Conversation

@SDSLeon

@SDSLeon SDSLeon commented Jun 2, 2026

Copy link
Copy Markdown
Owner
  • Refactor + bugfix: replaces hardcoded workflow handling with a shared trigger-word catalog and provider registry so new affordances can be added in one place.
  • Thread and draft composers pass provider/model-specific enabled words into MentionInput; chip promotion no longer runs when the active model does not support the feature.
  • Claude registers workflow only for Opus 4.7 and 4.8; other Claude models and all other providers keep the word as plain text.
  • User messages highlight any catalogued trigger word inline, independent of which provider promoted it in the composer.
  • Adds tests for getTriggerWords resolution across providers and models.

SDSLeon added 2 commits June 1, 2026 16:02
- Add provider workflow trigger registry in ProviderIcon
- Register Claude Opus 4.7/4.8 support in Claude plugin
- Gate MentionInput workflow word promotion behind workflowTriggerEnabled
- Wire thread and draft composers via supportsWorkflowTrigger
- Add unit tests for supportsWorkflowTrigger matching
- Add shared triggerWords catalog with regex helpers
- Replace workflowTriggerEnabled with triggerWords in composers
- Rename provider registry to registerTriggerWords/getTriggerWords
- Update UserMessage highlighting to use shared trigger patterns
- Replace workflowTrigger tests with triggerWords tests
@vercel

vercel Bot commented Jun 2, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
lightcode-landing Ready Ready Preview, Comment Jun 2, 2026 2:30am

@SDSLeon SDSLeon merged commit ccbb9f7 into master Jun 2, 2026
6 checks passed
@SDSLeon SDSLeon deleted the lightcode/honest-pixel-2f37ac9f branch June 2, 2026 02:34
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