Conversation
Entire-Checkpoint: 0f0f0ce6d09e
Entire-Checkpoint: 16574dc8da32
Entire-Checkpoint: b53d00df1f4f
Contributor
There was a problem hiding this comment.
Pull request overview
Improves the Copilot CLI E2E harness reliability and local usability by relaxing auth assumptions, adding input cleanup/retry handling for Copilot’s interactive UI quirks, and skipping an unstable Copilot-specific subagent commit test.
Changes:
- Skip the “subagent commit in turn” E2E test for
copilot-clidue to Copilot background-subagent timing/hook ordering. - Harden
copilot-cliinteractive sending by clearing the input line up front, dismissing autocomplete, and retrying when Copilot gets into a slash-command error state. - Forward additional auth/config-related environment variables into the tmux session to support local auth (not just token auth).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| e2e/tests/single_session_test.go | Skips an unstable Copilot-only subagent/commit assertion. |
| e2e/agents/copilot-cli.go | Makes Copilot interactive tmux session more robust (env forwarding + input cleanup + retry logic). |
Entire-Checkpoint: 19150b296396
pjbgf
approved these changes
Mar 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
three things:
Note
Low Risk
Low risk: changes are confined to E2E harness behavior (tmux input handling, env forwarding, and one test skip) and do not affect production logic, but may alter Copilot CLI test interactions and retry semantics.
Overview
Improves
copilot-cliE2E stability by pre-clearing the input line before sending prompts, adding helpers to dismiss slash-command autocomplete, and retrying once when Copilot leaves anUnknown command: /state after submission.Updates interactive session startup to optionally forward additional auth/config environment (
XDG_CONFIG_HOME,GH_CONFIG_DIR) instead of hard-requiringCOPILOT_GITHUB_TOKEN, enabling local runs that rely on existinggh/Copilot login state. Also skipsTestSingleSessionSubagentCommitInTurnforcopilot-clidue to non-deterministic background subagent completion ordering.Written by Cursor Bugbot for commit 30d7798. Configure here.