Title: Custom agent selection reverts to Default agent mid-session · Issue #4047 · github/copilot-cli · GitHub
Open Graph Title: Custom agent selection reverts to Default agent mid-session · Issue #4047 · github/copilot-cli
X Title: Custom agent selection reverts to Default agent mid-session · Issue #4047 · github/copilot-cli
Description: Description When starting a session with a specific custom agent explicitly selected for the initial prompt, the agent selection reverts to the Default agent as the session progresses (during subsequent reasoning/turns). Steps to reprodu...
Open Graph Description: Description When starting a session with a specific custom agent explicitly selected for the initial prompt, the agent selection reverts to the Default agent as the session progresses (during subse...
X Description: Description When starting a session with a specific custom agent explicitly selected for the initial prompt, the agent selection reverts to the Default agent as the session progresses (during subse...
Opengraph URL: https://github.com/github/copilot-cli/issues/4047
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Custom agent selection reverts to Default agent mid-session","articleBody":"**Description**\nWhen starting a session with a specific custom agent explicitly selected for the initial prompt, the agent selection reverts to the Default agent as the session progresses (during subsequent reasoning/turns).\n\n**Steps to reproduce**\n1. Start a new session/kickoff prompt with a specific custom agent selected.\n2. Observe the initial prompt runs under the selected agent.\n3. As the conversation continues and further thinking/turns happen, the session shows/reverts to the 'Default agent'.\n\n**Expected behavior**\nThe explicitly selected custom agent should remain active for the duration of the session (or at least persist across turns) unless the user explicitly changes it.\n\n**Actual behavior**\nAgent selection reverts to Default agent after the initial prompt.\n\n**Additional context**\nReported via Copilot CLI session. Unclear whether this is a UI display issue (mislabeling) or an actual functional reversion of agent config underneath.","author":{"url":"https://github.com/AliSmith95","@type":"Person","name":"AliSmith95"},"datePublished":"2026-07-07T10:33:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4047/copilot-cli/issues/4047"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3ce41545-992f-d1e0-3cf7-bbde2944f730 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C06:B008A:8AFACB:BE006F:6A4DB80C |
| html-safe-nonce | 2af7d463aeb4081baf8c8a765f40d66e935f54c2ae54f1d0631a138767bff76e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzA2OkIwMDhBOjhBRkFDQjpCRTAwNkY6NkE0REI4MEMiLCJ2aXNpdG9yX2lkIjoiNTk4NDc0Mjg0Mzc1ODc4NjU3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | da0ccf223be3d497fb27bab80f926769180de79183772b2816649c679c3d8462 |
| hovercard-subject-tag | issue:4827634385 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/copilot-cli/4047/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e7b53ee3f1470bb03ce88c9ae508580f65ddc5c4d097fca94559e914de275f05/github/copilot-cli/issues/4047 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e7b53ee3f1470bb03ce88c9ae508580f65ddc5c4d097fca94559e914de275f05/github/copilot-cli/issues/4047 |
| og:image:alt | Description When starting a session with a specific custom agent explicitly selected for the initial prompt, the agent selection reverts to the Default agent as the session progresses (during subse... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AliSmith95 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/copilot-cli git https://github.com/github/copilot-cli.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 585860664 |
| octolytics-dimension-repository_nwo | github/copilot-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 585860664 |
| octolytics-dimension-repository_network_root_nwo | github/copilot-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32f7b614aca06e6bbd89842b1370df1328264f68 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width