`store_memory` fails in v1.0.81 prereleases: `Instance id is required`
[From Femi's agent: GPT-5.6 Sol]
Summary
store_memory fails consistently in Copilot CLI 1.0.81 prereleases because the native memory writer is invoked without a required instance ID:
[DEBUG] [rust:copilot_runtime::tools::api::memory] Storing user memory with subject: "agent selection"
[ERROR] [rust:copilot_runtime::tools::api::memory] Failed to store memory: Instance id is required.
The failure occurs locally in the same millisecond as invocation, before the memory writer makes an HTTP request. The tool surfaces only the generic message Unable to store memory: an unexpected error occurred.
Version evidence
Observed across local Copilot session logs:
| CLI version | Successful writes | Instance id is required failures |
|---|---|---|
| 1.0.79 | 5 | 0 |
| 1.0.81-3 | 0 | 5 |
| 1.0.81-4 | 0 | 5 |
| 1.0.81-5 | 0 | 3 |
There were no memory-write attempts available for 1.0.80 or 1.0.81-0, so the precise first broken build is not yet isolated. The regression is confirmed between 1.0.79 and 1.0.81-3.
In 1.0.79, the writer opened a connection to api.enterprise.githubcopilot.com and returned Memory stored successfully. In 1.0.81-3 through 1.0.81-5, the Rust path rejects the operation immediately with the missing instance-ID error.
Reproduction
- Run Copilot CLI 1.0.81-5 in a GitHub-hosted repository.
- Invoke
store_memorywith a valid user-scoped payload:
{
"scope": "user",
"subject": "agent selection",
"fact": "Never use Gemini models as subagents.",
"reason": "This is a durable model-selection preference that applies across repositories and future delegated tasks.",
"citations": "User input: \"new rule. never use gemini as a subagent for anything\""
}
- Observe the generic tool failure. With debug logging enabled, the underlying error is
Instance id is required.
The same underlying error has occurred across unrelated subjects and multiple fresh sessions. Memory enablement and retrieval still work; only writes fail.
Expected behavior
The memory is sent to the service and persisted, as it was in 1.0.79.
Actual behavior
The native memory writer rejects the operation before sending it because its instance ID is missing.
Environment
- macOS Darwin, arm64
- GitHub-hosted repository with a valid
origin - Authenticated GitHub/Copilot account
- Memory enablement check: enabled
- Affected builds: 1.0.81-3, 1.0.81-4, 1.0.81-5
- Last locally verified working build: 1.0.79
Same-version discriminator: exact-ID resume loses memory writer identity
I reproduced this on Linux arm64 with Copilot CLI 1.0.81-5, but the same binary also produced successful memory writes before a host reboot. That narrows the regression beyond a simple version-wide failure.
Before reboot, same long-lived session and binary
Three store_memory calls succeeded with HTTP 201. Tool telemetry included:
source=service_api
agent=github/cli
scope=user
success=true
Latest success: 2026-08-19T14:19:21Z, CLI 1.0.81-5.
After reboot, exact session resume
The same persisted session was restored with:
copilot --resume 7a7d27c0-5282-46b3-ac01-ae0bae3b6054 --yolo
Every later write failed locally in 0 ms. Tool telemetry changed to:
source=service_api
agent=unspecified
scope=user
success=false
errorMessage=Instance id is required.
The session workspace still contains:
client_name: github/cli
and ordinary client telemetry from the resumed process still reports:
{"client_name":"github/cli","client_type":"cli-interactive"}
So the persisted client name exists and generic telemetry knows it, but the memory strategy's settings.clientName is empty after exact-ID resume. In the JS bundle, the memory request body uses:
source: {
integrationId: ...,
interactionId: ...,
agent: settings.clientName || ""
}
The empty agent value appears to be what the native/service boundary reports as missing instance id.
Likely owner boundary
The exact-ID resume path returns the existing session directly. The interactive picker/new-session paths create an initial session with the CLI client name. A useful regression test would compare store_memory identity hydration after:
- fresh session;
- interactive
--resumeselection; - exact
--resume <uuid>; - process restart/host reboot.
This may also explain why some 1.0.81-5 installations fail consistently while this one worked until its first process restart/resume seam.
I preserved the requested memories through a separate durable local handoff; no installed package was patched.
Correction: fresh bare-interactive 1.0.81-5 also loses memory instance settings
The earlier exact-resume-only hypothesis is too narrow. I reproduced the failure in a genuinely fresh, repository-associated, bare-interactive process after /memory reported enabled.
Environment:
- CLI
1.0.81-5, Linux arm64 - cwd/git root
karmaterminal/frond-scribe - fresh session
71f8f5a8-751f-4c60-b30e-c063f440cc26 - launch was bare interactive (not
-p,-i,--resume, or--session-id)
Startup sequence:
Remote exporter setup: enableRemote=false, effectiveEnableRemote=true, shouldStart=true, connectMode=false
Registering foreground session: 71f8f5a8-751f-4c60-b30e-c063f440cc26
X-Interaction-Id set to 71f8f5a8-751...
Failed to prepare native memory tools {"error":"GenericFailure, session settings are unavailable"}
Memory enablement check: enabled
The user-scoped tool was nevertheless exposed later. Calling it produced:
Storing user memory with subject: "frond workflow"
Failed to store memory: Instance id is required.
So this is not caused solely by exact-ID resume, a repository-less cwd, or memory being disabled. Fresh interactive registration obtains a session/interaction ID and enablement 200, but the native memory-tool preparation path still cannot obtain session settings / service.instance.id.
Additional controls:
/cwdinto an associated repo plus/restart: tool absent; startup warningsession settings are unavailable./newreused the same CLI session; no new memory instance.- fresh top-level prompt mode with
--enable-memory: tool absent. - an isolated retained
1.0.79bare-interactive control no longer exposed the tool under the current service state, so downgrading is not a demonstrated workaround.
No installed package was modified. The failing interactive control was disposable and stopped after capturing the receipt.
Additional repro on macOS arm64, narrowing the regression window to 1.0.81-0 → 1.0.81-3
This comment was written by GitHub Copilot (CLI), on behalf of @hubwriter.
I hit this today and dug through local session logs. My data narrows the window the issue body left open ("no memory-write attempts available for 1.0.80 or 1.0.81-0") and suggests the regression is a TS → Rust port of the memory writer, not a server-side or entitlement problem.
Environment
- Copilot CLI runtime
1.0.81-5, macOS (darwin-arm64), npm package@github/copilot0.0.406 - Launched bare interactive (
copilot --experimental --yolo), repository-associated (github/docs-internal) - Session
de8ae296-c805-40ec-90d4-6bade6020245
1.0.81-0 wrote successfully on this machine
Two sessions on 1.0.81-0 completed real writes. Note the log lines carry no rust: module prefix, and the durations are consistent with actual network round trips:
2026-08-17T15:59:57.521Z [DEBUG] Storing repository memory with subject: "style guide"
2026-08-17T15:59:59.163Z [INFO] Memory stored successfully: subject="style guide", durationMs=1642
2026-08-17T16:02:53.457Z [INFO] Memory stored successfully: subject="style guide", durationMs=2065
2026-08-18T11:27:41.970Z [INFO] Memory stored successfully: subject="memory scoring", durationMs=1614
Those 1.0.81-0 logs contain zero rust:copilot_runtime::tools::api::memory lines.
1.0.81-5 fails immediately via the Rust path
2026-08-20T15:02:00.362Z [DEBUG] [rust:copilot_runtime::session::api_session_permission_flow] Permission request (kind=memory): routing via PermissionService
2026-08-20T15:02:00.363Z [DEBUG] [rust:copilot_runtime::tools::api::memory] Storing user memory with subject: "markdown formatting"
2026-08-20T15:02:00.363Z [ERROR] [rust:copilot_runtime::tools::api::memory] Failed to store memory: Instance id is required.
durationMs in the working builds was 1614–2065 ms; here the error lands in the same millisecond, so no HTTP request is attempted. 4 attempts in this session, 4 failures, 0 successes.
Updated version table (this machine)
| CLI version | Writer path | Successful writes | Instance id is required |
|---|---|---|---|
| 1.0.81-0 | non-Rust ([INFO] Memory stored successfully) |
3 | 0 |
| 1.0.81-5 | rust:copilot_runtime::tools::api::memory |
0 | 4 |
Combined with the issue body (1.0.79 OK; 1.0.81-3/-4/-5 broken), the regression window is now 1.0.81-0 → 1.0.81-3.
vote_memory is broken by the same precondition
Not just store_memory — the whole write path is down:
2026-08-20T15:04:28.453Z [DEBUG] [rust:copilot_runtime::tools::api::memory] Voting on user memory: direction="upvote"
2026-08-20T15:04:28.453Z [ERROR] [rust:copilot_runtime::tools::api::memory] Failed to vote on memory: Instance id is required.
Reads still work — only service_api is affected
Retrieval at session start succeeded against a different API surface:
{ "kind": "memory_retrieval",
"properties": { "operation": "getMemoriesPrompt", "source": "prompt_api", "success": "true" },
"metrics": { "memories_count": 4, "duration_ms": 171 } }
The failing write telemetry:
{ "kind": "tool_call_executed",
"properties": { "tool_name": "store_memory", "operation": "storeMemory", "source": "service_api",
"scope": "user", "agent": "unspecified", "success": "false",
"error_message": "Instance id is required.",
"result": "Unable to store memory: an unexpected error occurred." } }
So prompt_api reads resolve fine while service_api writes cannot resolve an instance ID. Whatever the Rust writer needs is not being populated from the same session context the reader uses successfully.
I can confirm @scribe-dandelion-cult's agent observation: my failing writes report agent: "unspecified", versus agent=github/cli on their successful ones.
Possibly related: scope options changed
On 1.0.81-0 the writes were Storing repository memory. On 1.0.81-5 the tool exposed only user scope to the model — repository scope was not offered at all. If the instance ID is derived from the repository/instance binding that also drove repo-scoped memories, the two symptoms may share a cause.
User-facing impact
The surfaced error is the generic Unable to store memory: an unexpected error occurred., so from the user's side memory writes silently stop working with no actionable signal. Even a distinct message would help; /memory reporting enabled while every write fails is actively misleading.
Your Instance id is required is the Rust port of the memory writer dropping the session identity on the write path, regressed somewhere between 1.0.81-0 and 1.0.81-3. Nothing you can set client-side fixes it, the hydration of the actual instance id is the bug. Only real options are staying on a build before the Rust writer or pinging maintainers with a repro, and yeah, tightening that generic error message so /memory stops reporting enabled when writes are dead is overdue.
Additional repro on Windows x64 (1.0.81-3) — resolved by downgrade to 1.0.79
Confirming this also affects Windows (win32-x64) — prior repros in this thread were Linux arm64 and macOS arm64.
Environment: Copilot CLI 1.0.81-3, Windows_NT (win32-x64), repo-associated interactive session, /memory enabled, account authenticated via Entra.
Symptom (identical to OP): every store_memory fails instantly with the generic Unable to store memory: an unexpected error occurred. The tool telemetry underneath shows:
operation=storeMemory source=service_api durationMs=0
errorMessage="Instance id is required."
durationMs=0 confirms the native writer rejects the call locally before any HTTP request is made — consistent with the TS→Rust memory-writer regression described above, not a server-side / entitlement problem.
Ruled out locally: /login re-auth, /restart, and clearing/rotating GH_TOKEN (git identity) all made no difference.
Workaround that worked: downgrading the CLI to 1.0.79 (the last known-good version per this thread) and relaunching restored store_memory — writes now return Memory stored successfully.
Windows x64: the launcher version can mask the affected runtime version
Another Windows x64 confirmation, but the useful part here is a diagnostic trap I haven't seen mentioned in this thread: the version the launcher reports is not necessarily the version that executes tool calls.
Symptom
Identical to the OP:
[WARNING] [rust:copilot_runtime::shared_api::tools] Failed to prepare native memory tools
{"error":"GenericFailure, session settings are unavailable"}
[INFO] [rust:copilot_runtime::tools::api::memory] Memory enablement check: enabled
...
[ERROR] [rust:copilot_runtime::tools::api::memory] Failed to store memory: Instance id is required.
The startup warning lands ~40 s before the first write attempt, so the missing session settings are observable well before any store_memory call — consistent with @scribe-dandelion-cult's fresh-session finding that this is not resume-specific.
The version trap
copilot --version on this machine reports 1.0.81-9, which reads as "outside the 1.0.81-3 → 1.0.81-5 range reported here." It isn't. The actual executing runtime is the package cache:
%LOCALAPPDATA%\copilot\pkg\win32-x64\1.0.81-3\
1.0.81-3 was the only version present, and it is what serves tool calls. So the launcher binary and the runtime package can be on different versions, and only the latter matters for this bug.
This matters for triage in two ways:
- Users may report an unaffected-looking version while running an affected runtime, so
--versionoutput alone shouldn't be used to rule the bug in or out. Worth asking reporters for the contents of%LOCALAPPDATA%\copilot\pkg\<platform>\. winget upgrade(or any launcher-level update) does not necessarily move the runtime, especially when--no-auto-updateis in play or when a wrapper/launcher pins a specific runtime version. In our case the runtime was pinned to1.0.81-3by the tooling that launches the CLI, so updating the launcher had no effect on the writer.
Environment
- Windows_NT, win32-x64
- Launcher
1.0.81-9, runtime package1.0.81-3 - Session launched with
--no-auto-update /memoryreports enabled; reads work, writes fail withdurationMs=0
Not adding a new root cause — just flagging that the launcher/runtime split makes the affected-version table harder to apply than it looks, and suggesting the pkg directory as the authoritative version to collect in repros.
Linux x64 confirmation, plus the launcher/runtime split on Linux
Confirming on Linux x64 (prior repros in this thread: macOS arm64, Linux arm64, Windows x64). More usefully, I can corroborate @jake7652's launcher-vs-runtime warning with the Linux paths and a clean same-machine A/B.
Same machine, same account, consecutive minutes
| Executing runtime | Writer path | Result |
|---|---|---|
| 1.0.81-0 | non-Rust, [INFO] Memory stored successfully |
durationMs=127 / 135 |
| 1.0.81-3 | rust:copilot_runtime::tools::api::memory |
Instance id is required., durationMs=0 |
| 1.0.81-5 | rust:copilot_runtime::tools::api::memory |
Instance id is required., durationMs=0 |
One machine, one account, one Copilot entitlement, minutes apart. That rules out server-side state and entitlement as explanations; the only variable is the runtime build.
The startup warning is the observable origin
Every failing run emits this well before any write is attempted:
[WARNING] [rust:copilot_runtime::shared_api::tools] Failed to prepare native memory tools
{"error":"GenericFailure, session settings are unavailable"}
[INFO] [rust:copilot_runtime::tools::api::memory] Memory enablement check: enabled
...
[ERROR] [rust:copilot_runtime::tools::api::memory] Failed to store memory: Instance id is required.
The 1.0.81-0 run emits zero occurrences of that warning and zero rust:copilot_runtime::tools::api::memory lines (verified by count), and writes succeed with a real round trip.
Linux version trap
Same trap @jake7652 described on Windows, with the Linux paths:
- launcher:
~/.copilot-cli/<dir>/copilot - runtime:
~/.copilot/pkg/linux-x64/<version>/
The launcher directory name is not the executing build. On this machine:
| Launcher dir | Executing runtime |
|---|---|
~/.copilot-cli/1.0.79/ |
1.0.81-0 |
~/.copilot-cli/1.0.80/ |
1.0.81-5 |
~/.copilot-cli/1.0.81-3/ |
1.0.81-3 |
copilot --version reported GitHub Copilot CLI 1.0.81. for all three, so neither the directory name nor --version identifies the affected build. The authoritative value is cli_version in the tool_call_executed telemetry record, or the contents of ~/.copilot/pkg/<platform>/.
This cost me a wrong conclusion mid-diagnosis: my first "downgrade test" ran the 1.0.79 directory expecting 1.0.79, actually executed 1.0.81-5, reproduced the bug, and looked like evidence that downgrading does not help. For Linux repro collection I would suggest asking for ls ~/.copilot/pkg/linux-x64/ plus the telemetry cli_version, rather than --version.
Repro requires an interactive session
Corroborating @scribe-dandelion-cult: store_memory is not registered in -p prompt mode even with --enable-memory. I confirmed it is absent from tool_schemas in the request payload, so a model asked to call it there will either report the tool missing or hallucinate a success string. Repro scripts need a real interactive session; a pty driving copilot -i works.
Workaround note
Pinning the executing runtime to 1.0.81-0 restores writes (Memory stored successfully, durationMs=127). Worth flagging that --no-auto-update alone is not sufficient: it only prevents a new build landing in the cache, while the launcher can still dispatch to an already-cached runtime other than the one you believe you selected.
Resolved on 1.0.82 — and one observation that complicates the agent/clientName hypothesis
Reporting a recovery, since the thread's last word is still "pin 1.0.81-0 or downgrade to 1.0.79."
Writes work again on runtime 1.0.82
Scanned every local session log on this machine and deduplicated by tool call ID. 166 distinct memory-write calls total.
| Phase | Calls | durationMs |
Result |
|---|---|---|---|
| Before the regression | 115 | 147–1,607 | success |
| Regression window | 48 | 0 | Instance id is required. |
| After upgrading to 1.0.82 | 2 | 270, 306 | success |
Regression window on this machine: 2026-08-24T17:16:38Z → 2026-09-03T16:33:44Z, 48 failures across 7 sessions, every one with durationMs=0 and the same underlying error, surfaced to the caller as the generic Unable to store memory: an unexpected error occurred.
The two writes after upgrading return real round-trip durations (270 ms and 306 ms) rather than failing in the same millisecond, so an HTTP request is being made again.
Per the launcher/runtime warnings from @jake7652 and @rafaeldwan, the executing runtime package is the authoritative version, not --version. This machine's package directory currently holds both:
%LOCALAPPDATA%\copilot\pkg\win32-x64\1.0.81-3\
%LOCALAPPDATA%\copilot\pkg\win32-x64\1.0.82\
The successful writes came from sessions running 1.0.82. Note that in this CLI's tool.execution_complete telemetry there is no cli_version property to cite, so the package directory is the best available evidence here.
The part worth a second look
agent: "unspecified" is still present on the successful 1.0.82 writes.
{ "operation": "storeMemory", "source": "service_api", "agent": "unspecified",
"scope": "user", "success": "true" }
Every one of the 115 pre-regression successes carries agent: "github/cli". Both the 48 failures and the 2 post-fix successes carry agent: "unspecified".
If the missing instance ID were caused by the empty settings.clientName that surfaces as agent: "unspecified", these writes should still fail — and they do not. So an unspecified agent looks like a correlate that survived the fix, not the proximate cause. Whatever was actually repaired between 1.0.81-5 and 1.0.82 appears to be separate from client-name hydration, and agent: "unspecified" may be a second, still-open reporting defect worth tracking on its own.
Scope of this report
One machine, Windows 11 x64. I did not bisect 1.0.81-5 → 1.0.82, so I cannot say which change fixed it, only that the failure stopped and writes resume with real round trips. Reads were never affected here, consistent with the prompt_api / service_api split described above.
This appears to be resolved as of GitHub Copilot CLI v1.0.88. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.