Skip to content

fix: declare agent-specific variable in ClaudeCode agent and improve agent specific variable status UX #16967

Merged
ndoschek merged 2 commits intomasterfrom
GH-16912
Feb 11, 2026
Merged

fix: declare agent-specific variable in ClaudeCode agent and improve agent specific variable status UX #16967
ndoschek merged 2 commits intomasterfrom
GH-16912

Conversation

@ndoschek
Copy link
Member

What it does

Resolves GH-16912

  • fix(ai-claude-code): declare agent-specific variable
    • Add activeEditor to agentSpecificVariables so it no longer show as "Undeclared" in the AI Configuration view as it is effectively used in the prompt
  • fix(ai-ide): improve agent specific variable status UX
    • Add tooltips to undeclared and not-used-in-prompt variable warnings
    • Fix warning text color to improve readability

How to test

  • Check the "Used Agent-Specific Variables" section of the ClaudeCode agent in the AI Configuration View, activeEditor should now have a proper description
  • To test the UX improvements for the warnings:
    1. Add a random undeclared variable to the ClaudeCode prompt, for example {{myUndeclaredVariable}}. Verify that the status "Undeclared" is displayed and styled correctly. Check the tooltip for more information.
    2. Remove {{activeEditor}} from the ClaudeCode prompt. Verify that the status "Not used in prompt" is displayed and styled correctly. Check the tooltip for more information.

Follow-ups

Breaking changes

  • This PR introduces breaking changes and requires careful review. If yes, the breaking changes section in the changelog has been updated.

Attribution

Review checklist

Reminder for reviewers

Resolves GH-16912

- Add activeEditor to agentSpecificVariables so it no longer show as "Undeclared" in the AI Configuration view as it is effectively used in the prompt
- Add tooltips to undeclared and not-used-in-prompt variable warnings
- Fix warning text color to improve readability
@ndoschek ndoschek requested a review from planger February 11, 2026 09:53
@github-project-automation github-project-automation bot moved this to Waiting on reviewers in PR Backlog Feb 11, 2026
Copy link
Contributor

@planger planger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much! Looks good.

@github-project-automation github-project-automation bot moved this from Waiting on reviewers to Needs merge in PR Backlog Feb 11, 2026
@ndoschek ndoschek merged commit 52fae2e into master Feb 11, 2026
10 checks passed
@github-project-automation github-project-automation bot moved this from Needs merge to Done in PR Backlog Feb 11, 2026
@ndoschek ndoschek deleted the GH-16912 branch February 11, 2026 14:15
@github-actions github-actions bot added this to the 1.69.0 milestone Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[ClaudeCode] agent specific variable "Undeclared"

2 participants