docs: .env.example 补充 WORKSPACE_MAX_AGE_DAYS 说明 - #277
Conversation
该变量决定工作区目录与 thread session 的保留天数(代码默认 3 天), 之前未在 .env.example 中记录,容易被误认为默认一周。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Claude finished @lishuceo's task in 1m 2s —— View job Claude Code Review
✅ ApprovedPure documentation change. I verified every factual claim in the new comment against the source — all three are accurate. Verification
The "自动创建的" qualifier is a good catch — without it the comment would over-promise, since manually-specified Placement inside the Notes (non-blocking, no action requested)
No issues found. Zero risk to merge. |
背景
线上工作区被清理的实际窗口是 3 天(
src/config.ts中WORKSPACE_MAX_AGE_DAYS默认值),但.env.example里完全没有提到这个变量,容易被误认为是一周或更久。改动
.env.example工作区配置段补充WORKSPACE_MAX_AGE_DAYS注释,说明默认 3 天,且该值同时决定 thread session 的空闲过期时间(过期后其自动创建的工作区目录一并删除)。纯文档改动,无代码逻辑变更。线上部署侧已单独把该值调整为 30 天(
.env不入库)。🤖 Generated with Claude Code