Skip to content

fix(update): show the update notice to scripts and AI assistants - #346

Open
jpage-godaddy wants to merge 1 commit into
mainfrom
agents-upgrade-info
Open

jpage-godaddy wants to merge 1 commit into
mainfrom
agents-upgrade-info

Conversation

@jpage-godaddy

Copy link
Copy Markdown
Collaborator

Summary

The "new version available" notice was only printed when both stdout and stderr were terminals, so scripts and AI assistants, which run gddy with piped output, never learned that an update existed.

  • The notice now goes to stderr on every run once a newer release is known. Stdout, and so the JSON result, is untouched.
  • When output is not a terminal, the notice adds an AI assistants: line asking them to tell the user and to run gddy update apply only after the user agrees.
  • The notice is still skipped in CI (CI / GITHUB_ACTIONS), where updating in place is pointless.
  • The gddy skill now tells assistants to run gddy update check at the start of a session, to read stderr for the notice, and to ask before updating.

Notes

The notice appears on every invocation until the update is applied, so anything that merges stderr into stdout will see it.

🤖 Generated with Claude Code

The "new version available" notice was only printed when both stdout and
stderr were terminals, so scripts and AI assistants, which run gddy with
piped output, never learned that an update existed.

The notice now goes to stderr on every run once a newer release is known,
leaving stdout and its JSON untouched. When output is not a terminal it
adds an "AI assistants:" line asking them to tell the user and to run
`gddy update apply` only after the user agrees. It is still skipped in CI.

The gddy skill now tells assistants to run `gddy update check` at the start
of a session, to watch stderr for the notice, and to ask before updating.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Copilot AI 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.

🟢 Approval recommended

The focused changes preserve stdout and CI suppression, with no identified blocking issues.

No open issues 🎉

What changed in this PR

This PR makes cached update notices visible to scripts and AI assistants while keeping command results on stdout unchanged.

Changes:

  • Prints update notices to stderr for both terminal and piped output, while retaining CI suppression.
  • Adds consent guidance for AI assistants in non-interactive notices and tests the notice text.
  • Updates the gddy skill to recommend checking for updates at session start and requesting permission before installing.
File Description
rust/​src/​update/​mod.rs Broadens notice visibility, adds assistant guidance, and tests interactive and piped notice text.
.agents/​skills/​gddy/​SKILL.md Documents session-start update checks and permission-based installation.

Review effort: Balanced

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