Skip to content

Clarify update-issue vs close-issue tool descriptions#15475

Merged
pelikhan merged 3 commits intomainfrom
copilot/clarify-update-vs-close-issue
Feb 13, 2026
Merged

Clarify update-issue vs close-issue tool descriptions#15475
pelikhan merged 3 commits intomainfrom
copilot/clarify-update-vs-close-issue

Conversation

Copy link
Contributor

Copilot AI commented Feb 13, 2026

  • Examine current tool descriptions in pkg/workflow/js/safe_outputs_tools.json
  • Update update_issue tool description to clarify it's for changing title/body/metadata, NOT for closing
  • Update close_issue tool description to emphasize it's specifically for closing issues
  • Update .github/aw/*.md files to clarify the distinction in documentation
  • Verify changes with make fmt and make lint
  • Run relevant tests to ensure no regressions
  • Recompile workflows to incorporate updated tool descriptions

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Updated tool descriptions and documentation to clarify:
- update-issue: Primarily for editing title/body/metadata WITHOUT closing
- close-issue: Specifically for closing issues with closing comments

Changes:
- Updated pkg/workflow/js/safe_outputs_tools.json with clearer tool descriptions
- Updated .github/aw/github-agentic-workflows.md with usage notes
- Updated .github/aw/create-shared-agentic-workflow.md to list both tools
- Updated .github/aw/create-agentic-workflow.md with clarifications

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Clarify tool description for update-issue and close-issue Clarify update-issue vs close-issue tool descriptions Feb 13, 2026
Copilot AI requested a review from pelikhan February 13, 2026 17:49
@pelikhan pelikhan marked this pull request as ready for review February 13, 2026 17:51
Copilot AI review requested due to automatic review settings February 13, 2026 17:51
@pelikhan
Copy link
Contributor

@copilot recompile

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR clarifies the intended division of responsibilities between the update_issue and close_issue safe-output tools, and updates agent-facing workflow docs/prompts to reduce confusion around when to use each.

Changes:

  • Strengthened close_issue and update_issue tool descriptions to explicitly distinguish “closing with a comment” vs “metadata/content edits”.
  • Added clarifying parentheticals and an explanatory note in agentic workflow documentation.
  • Updated workflow-creation prompts to mention close-issue explicitly alongside update-issue.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
pkg/workflow/js/safe_outputs_tools.json Updates tool descriptions to discourage using update_issue for closures and direct closures to close_issue.
.github/aw/github-agentic-workflows.md Adds inline guidance and a note clarifying update-issue vs close-issue usage in safe-outputs docs.
.github/aw/create-shared-agentic-workflow.md Updates recommended safe-outputs list to include close-issue and label update-issue as “for editing”.
.github/aw/create-agentic-workflow.md Updates recommended safe-outputs list to explicitly separate editing (update-issue) from closing (close-issue).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

{
"name": "update_issue",
"description": "Update an existing GitHub issue's status, title, labels, assignees, milestone, or body. Body updates support replacing, appending to, prepending content, or updating a per-run \"island\" section.",
"description": "Update an existing GitHub issue's title, body, labels, assignees, or milestone WITHOUT closing it. This tool is primarily for editing issue metadata and content. While it supports changing status between 'open' and 'closed', use close_issue instead when you want to close an issue with a closing comment. Body updates support replacing, appending to, prepending content, or updating a per-run \"island\" section.",
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

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

The update_issue tool description says it updates an issue “WITHOUT closing it”, but the schema still exposes a status field with closed as an allowed value. This is internally inconsistent for the tool consumer. Consider rephrasing to indicate it’s primarily for metadata/body edits, and that while status: closed is supported, close_issue should be used when you want to close with a closing comment.

Suggested change
"description": "Update an existing GitHub issue's title, body, labels, assignees, or milestone WITHOUT closing it. This tool is primarily for editing issue metadata and content. While it supports changing status between 'open' and 'closed', use close_issue instead when you want to close an issue with a closing comment. Body updates support replacing, appending to, prepending content, or updating a per-run \"island\" section.",
"description": "Update an existing GitHub issue's title, body, labels, assignees, milestone, or status. This tool is primarily for editing issue metadata and content. While it supports changing status between 'open' and 'closed', you should use close_issue instead when you want to close an issue and record a closing comment. Body updates support replacing, appending to, prepending content, or updating a per-run \"island\" section.",

Copilot uses AI. Check for mistakes.
Recompiled all workflows to incorporate clarified update-issue vs close-issue
tool descriptions into the lock files. 8 workflow lock files updated with the
new tool descriptions that emphasize the distinction between the two tools.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 13, 2026

@copilot recompile

Done. Recompiled all workflows - 8 lock files updated with the clarified tool descriptions (commit d19ad6e).

Copilot AI requested a review from pelikhan February 13, 2026 17:56
@pelikhan pelikhan merged commit 984ea78 into main Feb 13, 2026
@pelikhan pelikhan deleted the copilot/clarify-update-vs-close-issue branch February 13, 2026 17:56
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