Skip to content

fix(gemini): honor x-gemini.description override in command TOML#464

Merged
Chemaclass merged 1 commit into
mainfrom
fix/gemini-xtarget-description
Jun 18, 2026
Merged

fix(gemini): honor x-gemini.description override in command TOML#464
Chemaclass merged 1 commit into
mainfrom
fix/gemini-xtarget-description

Conversation

@Chemaclass

Copy link
Copy Markdown
Owner

Summary

  • commandTOML read only the top-level description and excluded it from the x-gemini pass-through keys, so an x-gemini.description override was silently dropped and the Claude-side description emitted instead.
  • Fix: resolve the description through emit.ResolveMeta(e.Meta, target) first, mirroring codex skillMarkdown (the emit: codex skill ignores x-codex.description override #312 pattern). Affects Gemini agents, commands, and skills (all render via commandTOML).

Found via the emit-layer bug-hunt.

Test plan

  • go test ./... (1260 pass) — added override unit test
  • agnostic-ai sync --check (clean), golangci-lint clean, gofmt clean

commandTOML read only the top-level description and excluded it from the
x-gemini pass-through keys, so an x-gemini.description override was
silently dropped and the Claude-side description emitted instead.
Resolve through emit.ResolveMeta first, matching codex skillMarkdown.
@Chemaclass Chemaclass added the bug Something isn't working label Jun 18, 2026
@Chemaclass Chemaclass self-assigned this Jun 18, 2026
@Chemaclass Chemaclass merged commit a5646c1 into main Jun 18, 2026
9 checks passed
@Chemaclass Chemaclass deleted the fix/gemini-xtarget-description branch June 18, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant