fix(session): fix Railway session persistence + WebUI improvements#109
Merged
fix(session): fix Railway session persistence + WebUI improvements#109
Conversation
…ION_DIR env var - Add AXON_SESSION_DIR env var support to session/index.ts, cleanup.ts, list.ts, web/server/session-manager.ts - All four session storage locations now consistently check AXON_SESSION_DIR first - This allows Railway deployments to redirect sessions into the persistent volume at /root/.claude/sessions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
核心 fix: 修复 Railway 部署时会话丢失的问题
AXON_SESSION_DIR环境变量支持AXON_SESSION_DIR=/root/.claude/sessions已在 Railway 环境变量中设置WebUI 代码编辑器改进 (CodeEditor, FileTree)
Channels/WebSocket 相关改动
依赖包更新
Root Cause
Railway Volume 挂载在
/root/.claude,但会话存储在/root/.axon/sessions/— 完全不同的目录,导致每次部署时会话数据丢失。Fix
设置
AXON_SESSION_DIR=/root/.claude/sessions,将会话重定向到 Volume 内。🤖 Generated with Claude Code