Skip to content

Conversation

@Tarquinen
Copy link
Collaborator

@Tarquinen Tarquinen commented Dec 22, 2025

Summary

  • Add debug context logging that saves transformed messages as JSON to ~/.config/opencode/logs/dcp/context/

- Add saveContext method to Logger that saves transformed messages as JSON
- Save to ~/.config/opencode/logs/dcp/context/{sessionId}/{timestamp}.json
- Only logs when debug.enabled is true in config
- Minimize output by stripping unnecessary metadata (IDs, summary, path, etc.)
- Keep essential fields: role, time, tokens, text/tool parts
@Tarquinen Tarquinen force-pushed the feat/debug-context-logging branch from a653547 to 481aef9 Compare December 22, 2025 07:49
@Tarquinen Tarquinen merged commit 114a6c0 into dev Dec 22, 2025
1 check passed
@Tarquinen Tarquinen deleted the feat/debug-context-logging branch December 22, 2025 07:50
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