serve: persist session traces across container restarts (Dockerfile VOLUME / XDG guidance)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- docker
- Domain
- documentation, infrastructure
Research direction
Read the deploy/Docker documentation and packages/opencode/Dockerfile first, then trace how altimate serve uses $XDG_DATA_HOME/altimate-code/traces/ and the tracing.dir override. Define the recommended volume mount and resolve whether VOLUME or XDG_DATA_HOME changes belong in the Dockerfile; done means the persistence guidance and agreed container behavior are documented and consistent.
Written by the indexing model from the issue text.
Description
Found during the v0.8.6 release review (Chaos/k8s persona). Deferred because it's a deployment/Dockerfile behavior change that needs design thought, not a quick fix.
Now that altimate serve writes session traces (#886), traces land under $XDG_DATA_HOME/altimate-code/traces/ (default ~/.local/share/altimate-code/traces/). In a container this is the ephemeral filesystem — a pod restart / rolling update / OOMKill silently drops the entire trace history.
Proposed:
- Document a recommended volume mount for the trace dir in the deploy/Docker docs.
- Consider
VOLUME/ENV XDG_DATA_HOMEinpackages/opencode/Dockerfile(carefully — it changes default paths). - Reference
tracing.dirconfig as the override knob.
- Dominant language
- TypeScript
- Stars
- 813
- Forks
- 134
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 62
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AltimateAI/altimate-code
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
AltimateAI/altimate-code#1323 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
AltimateAI/altimate-code#1288 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
AltimateAI/altimate-code#1285 ·
-
privacy: Altimate Base consent dialog no longer discloses persistent per-installation identifier Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
AltimateAI/altimate-code#1284 ·
-
Difficulty 2/5 Under an hour Newbie friendliness 72/100
AltimateAI/altimate-code#1283 ·
All issues in AltimateAI/altimate-code
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ontola/atomic-server#1625 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melgarafael/DeskcommCRM#1451 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·