store_memory offers user scope when user-level memory is unavailable; every user-scoped store fails with 404
Describe the bug
store_memory offers scope: "user" even when user-level preferences are not available for my account. Every user-scoped store then fails with HTTP 404, while repository-scoped stores work. The only client-side switch, /memory off, turns off both scopes, so I can't keep repository memory and turn off only the user scope that fails.
Affected version
GitHub Copilot CLI 1.0.113; also the runtime embedded in the VS Code 1.146.0 agent host (1.0.108-0)
Steps to reproduce the behavior
-
Use an account where user-level Copilot Memory preferences are not available, and work in a repository where repository memory is.
-
Start a session with memory enabled (VS Code agent host, or
copilot --enable-memory). -
Note that the
store_memorytool'sscopeparameter allows["repository","user"];copilot -p "..." --enable-memoryreports the same. -
Have the agent store a personal preference, so it calls
store_memorywithscope: "user". It fails within about a second:Unable to store memory: the memory endpoint was not found. User-scoped memories may not be enabled.
Tool telemetry:
operation=storeMemory,source=service_api,scope=user,httpStatus=404. -
With the same account and host,
store_memorywithscope: "repository"succeeds (HTTP 201), and repository memories load into the prompt normally.
Expected behavior
When user-level preferences are not available, the runtime should:
- Leave
userout ofstore_memory'sscopevalues and out of the memory guidance in the system prompt. It already does this for repository scope when there is no repository context ("Memory storage correctly limits available scopes when no repository context is present"). - Show user scope as unavailable in
/memory show, as 1.0.107 does for repository scope.
Separately, it would help to be able to turn off only one scope (for example user scope) in /memory or /settings, rather than all memory with /memory off.
Additional context
- macOS 27.0.1, arm64.
- The client can't tell me why user scope is unavailable (my personal scope choice, my plan, or organization policy); it only infers "may not be enabled" from the 404.
- Workaround: a personal custom instruction telling agents not to call
store_memorywith user scope. This relies on the model following it.
Until the scope list is fixed, a workaround that keeps repository memory on: move personal preferences out of memory and into ~/.copilot/copilot-instructions.md (or ~/.copilot/instructions/*.instructions.md). Those load locally in every session, don't depend on the user-memory endpoint, and /instructions shows whether they were picked up.
Then add one line to your repo instructions, such as "Store memories with scope repository only; personal preferences live in my user instructions file", so the agent stops trying the user scope that returns 404. It doesn't fix the missing scope check, but it should stop the failed calls and keep your preferences in a file you can read and edit yourself.
Indeed, that' s the shape of the workaround I'm using. I also have a recurring job on Mondays that checks to see if upstream has been fixed and removes the workaround 😊.
-William
From: AuzzurA @.> Date: Thursday, November 19, 2026 at 1:02 AM To: github/copilot-cli @.> Cc: William Cushing @.>; Author @.> Subject: Re: [github/copilot-cli] store_memory offers user scope when user-level memory is unavailable; every user-scoped store fails with 404 (Issue #5516)
CAUTION: External Email.
[https://avatars.githubusercontent.com/u/354551000?s=20&v=4]auzzura-team left a comment (github/copilot-cli#5516)https://github.com/github/copilot-cli/issues/5516#issuecomment-7004547799
Until the scope list is fixed, a workaround that keeps repository memory on: move personal preferences out of memory and into ~/.copilot/copilot-instructions.md (or ~/.copilot/instructions/*.instructions.md). Those load locally in every session, don't depend on the user-memory endpoint, and /instructions shows whether they were picked up.
Then add one line to your repo instructions, such as "Store memories with scope repository only; personal preferences live in my user instructions file", so the agent stops trying the user scope that returns 404. It doesn't fix the missing scope check, but it should stop the failed calls and keep your preferences in a file you can read and edit yourself.
— Reply to this email directly, view it on GitHubhttps://github.com/github/copilot-cli/issues/5516?email_source=notifications&email_token=CN4QXJAGGNIXS6DQV5GZXZL5Z2ZINA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTOMBQGQ2TINZXHE42M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-7004547799, or unsubscribehttps://github.com/notifications/unsubscribe-auth/CN4QXJGNFVMO36O2K5DV3ND5Z2ZINAVCNFSNUABFKJSXA33TNF2G64TZHM2TQNJYGYYDMNRUHNEXG43VMU5TMNBXHE4DCOJZGUZKC5QC. Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOShttps://github.com/notifications/mobile/ios/CN4QXJA3M6MJQ32FFEFTL7L5Z2ZINA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTOMBQGQ2TINZXHE42M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG and Androidhttps://github.com/notifications/mobile/android/CN4QXJBRMHV32VR35LMYI435Z2ZINA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTOMBQGQ2TINZXHE42M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA. Download it today! You are receiving this because you authored the thread.
This email is intended for recipient only and may contain sensitive, proprietary, privileged, or confidential information legally protected from disclosure. If you are not intended recipient, alert sender and delete message. This email system is not approved for communication of CJI.https://le.fbi.gov/cjis-division/cjis-security-policy-resource-center