全部插件

DSH / BUNDLE / BUNDLES

@gausszhou/dsh-opencode-session-id

v0.1.1gausszhou / dsh-opencode-session-idec4b9ca952

可安装组合包组合包与其他模块社区 · Topic 自动分析

概览

@gausszhou/dsh-opencode-session-id

dsh session IDs for opencode, zero config.

README / ZH

插件文档

目录摘要

dsh session IDs for opencode, zero config.

dsh.pub 核对固定版本的组合包契约、运行时事实与分发语义;完整 README 请查看源仓库。

在 GitHub 阅读完整 README

LIMITATIONS

已知限制

- The session id comes from `options.sessionId` (agent-loop fills it in per session); without a session context, the fallback chain is `sessionIdEnv` > `DSH_SESSION_ID` (the process's startup session in web deployments) > an in-process random id. - Covers protocols that go through `fetch`, such as `openai-completions` / `openai-responses` / `anthropic-messages`; `transport: websocket` does not use fetch and is out of scope. - The global fetch wrapper only appends request headers when an opencode endpoint is matched — nothing else is changed. The wire token is a one-way SHA-256 hash of the uuid portion of `session-<uuid>` (the `session-` prefix excluded, e.g. `0RpJJnxJ`), so the backend cannot reverse it to the original id; changing `nanoidAlphabet` / `nanoidLength` changes every token, breaking association with old records.