core: add client identification to user agent and request headers for better tracking

This commit is contained in:
Dax Raad
2025-12-11 16:17:47 -05:00
parent bfdb236581
commit d4dc142cc2
4 changed files with 5 additions and 1 deletions

View File

@@ -590,6 +590,7 @@ export namespace SessionPrompt {
"x-opencode-project": Instance.project.id,
"x-opencode-session": sessionID,
"x-opencode-request": lastUser.id,
"x-opencode-client": Flag.OPENCODE_CLIENT,
}
: undefined),
...model.headers,