Compare commits

...

4 Commits

Author SHA1 Message Date
Aiden Cline c5324e0cd4 fix(opencode): censor MCP access token output 2026-06-24 17:15:51 -05:00
Aiden Cline 28bdc894b9 fix(opencode): mask MCP access token output 2026-06-24 17:13:32 -05:00
Aiden Cline 47546436a0 test(opencode): cover MCP token expiry diagnostic 2026-06-24 16:56:02 -05:00
Aiden Cline ae45894848 fix(opencode): hide MCP access token prefix 2026-06-24 16:19:51 -05:00
+3 -1
View File
@@ -719,7 +719,9 @@ export const McpDebugCommand = effectCmd({
prompts.log.info(`Auth status: ${getAuthStatusIcon(authStatus)} ${getAuthStatusText(authStatus)}`)
if (entry?.tokens) {
prompts.log.info(` Access token: ${entry.tokens.accessToken.substring(0, 20)}...`)
prompts.log.info(
` Access token: ${entry.tokens.accessToken.length > 8 ? `${entry.tokens.accessToken.slice(0, 4)}***${entry.tokens.accessToken.slice(-4)}` : "***"}`,
)
if (entry.tokens.expiresAt) {
const expiresDate = new Date(entry.tokens.expiresAt * 1000)
const isExpired = entry.tokens.expiresAt < Date.now() / 1000