Skip to content

Fix console fetch, persist API log to disk#448

Merged
asim merged 1 commit intomainfrom
claude/persist-api-log
Mar 28, 2026
Merged

Fix console fetch, persist API log to disk#448
asim merged 1 commit intomainfrom
claude/persist-api-log

Conversation

@asim
Copy link
Copy Markdown
Member

@asim asim commented Mar 28, 2026

  • Fix console: FormData→URL-encoded so r.ParseForm() works\n- API log persisted to disk every 10s, loaded on startup, capped at 500\n\nhttps://claude.ai/code/session_01GRGLA9yj7BpqKiyi6xFwnm

Console: switched from FormData to URL-encoded POST body.
FormData sends multipart which r.ParseForm() can't read,
causing empty cmd and no response.

API log: persisted to api_log.json every 10 seconds. Loaded on
startup. Capped at 500 entries. Request/response bodies excluded
from persistence (too large). Survives server restarts.

https://claude.ai/code/session_01GRGLA9yj7BpqKiyi6xFwnm
@asim asim merged commit 9d09e5a into main Mar 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants