Skip to content

procedures: Document GitHub Copilot Chat usage#3097

Open
RomanNikitenko wants to merge 2 commits into
eclipse-che:7.117.xfrom
RomanNikitenko:device-auth
Open

procedures: Document GitHub Copilot Chat usage#3097
RomanNikitenko wants to merge 2 commits into
eclipse-che:7.117.xfrom
RomanNikitenko:device-auth

Conversation

@RomanNikitenko
Copy link
Copy Markdown
Member

@RomanNikitenko RomanNikitenko commented May 12, 2026

What does this pull request change?

Adds instructions how to authenticate GitHub Copilot Chat using Device Authentication flow

Click here to see screenshots image image image

What issues does this pull request fix or reference?

eclipse-che/che#23536 (comment)

Specify the version of the product this pull request applies to

Pull Request checklist

The author and the reviewers validate the content of this pull request with the following checklist, in addition to the automated tests.

  • Any procedure:
    • Successfully tested.
  • Any page or link rename:
    • The page contains a redirection for the previous URL.
    • Propagate the URL change in:
  • Builds on Eclipse Che hosted by Red Hat.
  • the Validate language on files added or modified step reports no vale warnings.

Assisted-by: Cursor AI

Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
Assisted-by: Cursor AI
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

Click here to review and test in web IDE: Contribute

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

🎊 Navigate the preview: https://6a05d228a307149b09738328--eclipse-che-docs-pr.netlify.app 🎊

@RomanNikitenko RomanNikitenko marked this pull request as ready for review May 12, 2026 13:52
@RomanNikitenko RomanNikitenko requested review from l0rd and removed request for a team May 12, 2026 13:52
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
 Assisted-by: Cursor AI
Copy link
Copy Markdown
Contributor

@gtrivedi88 gtrivedi88 left a comment

Choose a reason for hiding this comment

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

Added some suggestions. Please review and let me know if you have questions

@@ -0,0 +1,88 @@
:_content-type: PROCEDURE
:description: Using GitHub Copilot Chat in a Che workspace
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.

CQA P8 — Gerund in description metadata

Update to match the imperative title.

Suggested change
:description: Using GitHub Copilot Chat in a Che workspace
:description: Set up GitHub Copilot Chat in a Che workspace

:_content-type: PROCEDURE
:description: Using GitHub Copilot Chat in a Che workspace
:keywords: copilot, github-copilot, copilot-chat, ai, extensions
:navtitle: Using GitHub Copilot Chat
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.

CQA P8, Q3 — Gerund navtitle → imperative

Procedure titles must use an imperative verb, not a gerund.

Suggested change
:navtitle: Using GitHub Copilot Chat
:navtitle: Set up GitHub Copilot Chat

:navtitle: Using GitHub Copilot Chat

[id="using-github-copilot-chat"]
= Using GitHub Copilot Chat
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.

CQA P8, Q3 — Gerund title → imperative

CQA 2.1 requires procedure titles to start with an imperative verb. "Using" is a gerund. Since this procedure covers both installation and authentication, "Set up" captures the scope.

Suggested change
= Using GitHub Copilot Chat
= Set up GitHub Copilot Chat

[id="using-github-copilot-chat"]
= Using GitHub Copilot Chat

You can use link:https://github.com/features/copilot[GitHub Copilot Chat] in a {prod-short} workspace with the Code - OSS editor by installing the link:https://open-vsx.org/extension/redhat/devspaces-copilot-chat-integration/0.36.2[Dev Spaces Copilot Chat Integration] extension (version 0.36.2) and authenticating with your GitHub account.
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.

JTBD — WHY-first abstract

JTBD pattern requires leading with the user's goal (WHY), then the action (HOW). Current text starts with "You can use..." (HOW-first).

Suggested change
You can use link:https://github.com/features/copilot[GitHub Copilot Chat] in a {prod-short} workspace with the Code - OSS editor by installing the link:https://open-vsx.org/extension/redhat/devspaces-copilot-chat-integration/0.36.2[Dev Spaces Copilot Chat Integration] extension (version 0.36.2) and authenticating with your GitHub account.
To get AI-assisted coding suggestions in your {prod-short} workspace, install the link:https://open-vsx.org/extension/redhat/devspaces-copilot-chat-integration/0.36.2[Dev Spaces Copilot Chat Integration] extension (version 0.36.2) and authenticate with your GitHub account.

Also consider defining an attribute for the version (see comment on line 41).


* A GitHub account with an active link:https://github.com/features/copilot[GitHub Copilot] subscription.
* A running {prod-short} workspace with the Code - OSS editor.
* The following URLs must be accessible from the workspace (ensure they are whitelisted if you are in a restricted or air-gapped environment):
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.

Conscious language violation — "whitelisted"

Per Red Hat Conscious Language policy, "whitelist/whitelisted" must not be used. Replace with "allowlisted" or restructure.

Suggested change
* The following URLs must be accessible from the workspace (ensure they are whitelisted if you are in a restricted or air-gapped environment):
* The following URLs must be accessible from the workspace (ensure they are added to the allowlist if you are in a restricted or air-gapped environment):

Comment on lines +48 to +51
[IMPORTANT]
====
You must complete Device Authentication *before* attempting to use AI features. Initiating "Sign in to use AI Features" without a valid device authentication token causes authentication errors that require signing out and re-authenticating.
====
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.

CQA Q11 — Admonition density

Two [IMPORTANT] blocks in a 4-step procedure is high density. This is critical sequencing information that belongs in the step narrative, not a separate admonition. Consider folding it into the step 2 text:

Suggested change
[IMPORTANT]
====
You must complete Device Authentication *before* attempting to use AI features. Initiating "Sign in to use AI Features" without a valid device authentication token causes authentication errors that require signing out and re-authenticating.
====
IMPORTANT: You must complete Device Authentication *before* attempting to use AI features. Initiating "Sign in to use AI Features" without a valid device authentication token causes authentication errors that require signing out and re-authenticating.

Alternatively, merge steps 2 and 3 into a single step with this warning inline, since they are part of the same authentication flow.


.Verification

* The Copilot Chat panel opens and responds to prompts.
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.

CQA Q14 — Thin verification

Make the verification actionable with a concrete check.

Suggested change
* The Copilot Chat panel opens and responds to prompts.
* Open the Copilot Chat panel, type a prompt such as "Explain this file", and verify that a response appears.

Device Authentication is a one-time step. The credentials are saved as a Kubernetes object and persist across workspaces on the same cluster.
====

.Troubleshooting
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.

Modularity note — Embedded troubleshooting

For downstream backport, this troubleshooting section should be extracted to a separate module (ref_troubleshooting-github-copilot-chat.adoc or similar). For upstream che-docs, embedding is acceptable, but worth keeping in mind for the downstream sync.

* Copilot Chat appears to be connected but does not respond to prompts.
* The Copilot Chat output log contains errors such as:
+
----
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.

CQA Q18 — Listing block missing source annotation

Add a source annotation for consistency with CQA code block conventions.

Suggested change
----
[source,text]
----

* xref:devfile-introduction.adoc[]
* xref:ides-in-workspaces.adoc[]
** xref:microsoft-visual-studio-code-open-source-ide.adoc[]
** xref:using-github-copilot-chat.adoc[]
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.

Nav structure — Should be nested under VS Code page

GitHub Copilot Chat is specific to the Code-OSS editor. At ** level it appears as a sibling to all IDE pages, implying it applies to all IDEs. Nest it one level deeper under the VS Code page:

Suggested change
** xref:using-github-copilot-chat.adoc[]
*** xref:using-github-copilot-chat.adoc[]

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