pull/19223/head
Aiden Cline 2026-03-25 23:10:25 -05:00
parent 10089c9d28
commit 2d037966f4
1 changed files with 1 additions and 0 deletions

View File

@ -630,6 +630,7 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> {
output.headers.originator = "opencode"
output.headers["User-Agent"] = `opencode/${Installation.VERSION} (${os.platform()} ${os.release()}; ${os.arch()})`
// TODO: this is kinda hacky, we need to move the transport creation to a later point so it can accept more arguments rather than just relying on whatever is passed to fetch...
// distinguish between title gen and actual chat session
if (!input.small) {
output.headers.session_id = input.sessionID