Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

MUL-8220: fix(issues): stop repeating "wake" in time wakeup entries; remove unused KEEP_ENV setting (#9497)

苗大25086ae73b2c
diff --git a/packages/views/issues/components/wakeup-activity.test.tsx b/packages/views/issues/components/wakeup-activity.test.tsx
index b099f7b940..3cca8a46b3 100644
--- a/packages/views/issues/components/wakeup-activity.test.tsx
+++ b/packages/views/issues/components/wakeup-activity.test.tsx
@@ -73,6 +73,15 @@ describe("wakeup timeline entries", () => {
);
});
+ it("does not repeat \"wake\" when a time rule is added", () => {
+ const { t, text } = helpers();
+ const read = (e: TimelineEntry) => formatWakeupActivity(e, t, text, getActorName);
+ const at = { ...reply, kind: "at", event_types: [], next_fire_at: "2026-10-21T09:00:00Z" };
+ const hourly = { ...reply, kind: "every", mode: "continuous", event_types: [], interval_seconds: 3600 };
+ expect(read(entry("wakeup_created", { wakeup: at }))).toMatch(/^为 Emacs 添加了唤醒:.*09:00 唤醒$/);
+ expect(read(entry("wakeup_created", { wakeup: hourly }))).toBe("为 Emacs 添加了唤醒:每小时唤醒");
+ });
+
it("tags an entry with the rule it came from", () => {
const { t, text } = helpers();
const chip = (e: TimelineEntry) => wakeupActivityChip(e, t, text, getActorName);
diff --git a/packages/views/issues/components/wakeup-activity.tsx b/packages/views/issues/components/wakeup-activity.tsx
index 2aa9019126..668e53b86d 100644
--- a/packages/views/issues/components/wakeup-activity.tsx
+++ b/packages/views/issues/components/wakeup-activity.tsx
@@ -100,7 +100,11 @@ export function formatWakeupActivity(
const agent = preview?.agent_name ?? "";
switch (entry.action) {
case "wakeup_created":
- return t(($) => $.activity.wakeup_created, { condition, agent });
+ // A time rule's label already says "wake at ...", so the sentence names
+ // the agent up front instead of repeating "wake" after it.
+ return preview && !preview.condition && preview.kind !== "event"
+ ? t(($) => $.activity.wakeup_created_scheduled, { condition, agent })
+ : t(($) => $.activity.wakeup_created, { condition, agent });
case "wakeup_triggered": {
if (details.rule === "child_done") {
const count = details.total ?? 1;
diff --git a/packages/views/locales/en/issues.json b/packages/views/locales/en/issues.json
index 8048e05ba2..2bc4728443 100644
--- a/packages/views/locales/en/issues.json
+++ b/packages/views/locales/en/issues.json
@@ -532,6 +532,7 @@
"pr_auto_complete_disabled": "set this issue to keep its status when PRs merge",
"pr_auto_complete_enabled": "set this issue to change status when PRs merge again",
"wakeup_created": "added a wakeup: {{condition}} · wake {{agent}}",
+ "wakeup_created_scheduled": "added a wakeup for {{agent}}: {{condition}}",
"wakeup_triggered": "{{condition}} · woke {{agent}}",
"wakeup_triggered_merged": "{{condition}} · joined {{agent}}'s waiting run",
"wakeup_triggered_acknowledged": "{{condition}} · {{agent}} did this itself; not woken again",
diff --git a/packages/views/locales/fr/issues.json b/packages/views/locales/fr/issues.json
index 1ecb7037f4..3632e70e04 100644
--- a/packages/views/locales/fr/issues.json
+++ b/packages/views/locales/fr/issues.json
@@ -532,6 +532,7 @@
"pr_auto_complete_disabled": "a configuré cette tâche pour garder son statut à la fusion des PR",
"pr_auto_complete_enabled": "a de nouveau fait changer le statut de cette tâche à la fusion des PR",
"wakeup_created": "a ajouté un réveil : {{condition}} · réveiller {{agent}}",
+ "wakeup_created_scheduled": "a ajouté un réveil pour {{agent}} : {{condition}}",
"wakeup_triggered": "{{condition}} · {{agent}} réveillé",
"wakeup_triggered_merged": "{{condition}} · ajouté à l’exécution en attente de {{agent}}",
"wakeup_triggered_acknowledged": "{{condition}} · déclenché par {{agent}} lui-même ; pas de nouveau réveil",
diff --git a/packages/views/locales/ja/issues.json b/packages/views/locales/ja/issues.json
index 9a06593429..2e99655dcd 100644
--- a/packages/views/locales/ja/issues.json
+++ b/packages/views/locales/ja/issues.json
@@ -522,6 +522,7 @@
"pr_auto_complete_disabled": "このタスクを PR マージでステータスを変えないように設定しました",
"pr_auto_complete_enabled": "このタスクの PR マージ後のステータス変更を再開しました",
"wakeup_created": "起動を追加しました:{{condition}} · {{agent}} を起こす",
+ "wakeup_created_scheduled": "{{agent}} の起動を追加しました:{{condition}}",
"wakeup_triggered": "{{condition}} · {{agent}} を起こしました",
"wakeup_triggered_merged": "{{condition}}({{agent}} の開始待ちの実行に合流しました)",
"wakeup_triggered_acknowledged": "{{condition}}({{agent}} 自身の操作のため、再度は起こしていません)",
diff --git a/packages/views/locales/ko/issues.json b/packages/views/locales/ko/issues.json
index b9d5482447..0acfaa86d7 100644
--- a/packages/views/locales/ko/issues.json
+++ b/packages/views/locales/ko/issues.json
@@ -522,6 +522,7 @@
"pr_auto_complete_disabled": "이 태스크가 PR 병합 시 상태를 유지하도록 설정했습니다",
"pr_auto_complete_enabled": "이 태스크의 PR 병합 후 상태 변경을 다시 켰습니다",
"wakeup_created": "깨우기를 추가했습니다: {{condition}} · {{agent}} 깨우기",
+ "wakeup_created_scheduled": "{{agent}} 깨우기를 추가했습니다: {{condition}}",
"wakeup_triggered": "{{condition}} · {{agent}}을(를) 깨웠습니다",
"wakeup_triggered_merged": "{{condition}} · {{agent}}의 대기 중인 실행에 합쳤습니다",
"wakeup_triggered_acknowledged": "{{condition}} · {{agent}} 자신의 작업이라 다시 깨우지 않았습니다",
diff --git a/packages/views/locales/zh-Hans/issues.json b/packages/views/locales/zh-Hans/issues.json
index 19e41906cd..2bb7f92f89 100644
--- a/packages/views/locales/zh-Hans/issues.json
+++ b/packages/views/locales/zh-Hans/issues.json
@@ -522,6 +522,7 @@
"pr_auto_complete_disabled": "设置此任务合并后不改状态",
"pr_auto_complete_enabled": "恢复了此任务合并后改状态",
"wakeup_created": "添加了唤醒:{{condition}}唤醒 {{agent}}",
+ "wakeup_created_scheduled": "为 {{agent}} 添加了唤醒:{{condition}}",
"wakeup_triggered": "{{condition}},唤醒了 {{agent}}",
"wakeup_triggered_merged": "{{condition}},并入了 {{agent}} 待开始的运行",
"wakeup_triggered_acknowledged": "{{condition}},由 {{agent}} 自己触发,未重复唤醒",
diff --git a/server/internal/daemon/config.go b/server/internal/daemon/config.go
index d773b7636e..c185ae75a8 100644
--- a/server/internal/daemon/config.go
+++ b/server/internal/daemon/config.go
@@ -113,7 +113,6 @@ type Config struct {
Profile string // profile name (empty = default)
Agents map[string]AgentEntry // keyed by provider: claude, codebuddy, codex, copilot, opencode, codearts, deveco, openclaw, hermes, pi, cursor, kimi, reasonix, dsh, kiro, antigravity, qoder, qoderclicn, traecli, grok, qwen, qwenpaw, mcode, dim, zeroclaw (plus built-in runtime identities from agent.BuiltinRuntimes, e.g. omp)
WorkspacesRoot string // base path for execution envs (default: ~/multica_workspaces)
- KeepEnvAfterTask bool // preserve env after task for debugging
HealthPort int // local HTTP port for health checks (default: 19514)
MaxConcurrentTasks int // max tasks running in parallel (default: 20)
GCEnabled bool // enable periodic workspace garbage collection (default: true)
@@ -540,9 +539,6 @@ func LoadConfig(overrides Overrides) (Config, error) {
healthPort = overrides.HealthPort
}
- // Keep env after task: env > default (false)
- keepEnv := os.Getenv("MULTICA_KEEP_ENV_AFTER_TASK") == "true" || os.Getenv("MULTICA_KEEP_ENV_AFTER_TASK") == "1"
-
// GC config: env > defaults
gcEnabled := true
if v := os.Getenv("MULTICA_GC_ENABLED"); v == "false" || v == "0" {
@@ -632,7 +628,6 @@ func LoadConfig(overrides Overrides) (Config, error) {
Profile: profile,
Agents: agents,
WorkspacesRoot: workspacesRoot,
- KeepEnvAfterTask: keepEnv,
GCEnabled: gcEnabled,
GCInterval: gcInterval,
GCTTL: gcTTL,