Rename alarm feature flag

This commit is contained in:
Eric Traut
2026-04-06 15:36:09 -07:00
parent 97807aea72
commit 73b2cd7c6c
3 changed files with 7 additions and 11 deletions

View File

@@ -144,9 +144,9 @@ Example with notification opt-out:
- `thread/unsubscribe` — unsubscribe this connection from thread turn/item events. If this was the last subscriber, the server shuts down and unloads the thread, then emits `thread/closed`.
- `thread/name/set` — set or update a threads user-facing name for either a loaded thread or a persisted rollout; returns `{}` on success and emits `thread/name/updated` to initialized, opted-in clients. Thread names are not required to be unique; name lookups resolve to the most recently updated thread.
- `thread/unarchive` — move an archived rollout file back into the sessions directory; returns the restored `thread` on success and emits `thread/unarchived`.
- `thread/alarm/create` — create a runtime alarm on a loaded thread; accepts `cronExpression`, `prompt`, `delivery`, and optional `runOnce`, returns the created alarm, and requires the experimental feature flag `alarm_scheduler` to be enabled for that thread.
- `thread/alarm/delete` — delete one runtime alarm from a loaded thread by id; returns `{ deleted }` and requires `alarm_scheduler`.
- `thread/alarm/list` — list runtime alarms for a loaded thread; returns `{ data }` and requires `alarm_scheduler`.
- `thread/alarm/create` — create a runtime alarm on a loaded thread; accepts `cronExpression`, `prompt`, `delivery`, and optional `runOnce`, returns the created alarm, and requires the under-development feature flag `alarm_tool` to be enabled for that thread.
- `thread/alarm/delete` — delete one runtime alarm from a loaded thread by id; returns `{ deleted }` and requires `alarm_tool`.
- `thread/alarm/list` — list runtime alarms for a loaded thread; returns `{ data }` and requires `alarm_tool`.
- `thread/alarm/updated` — notification emitted when a loaded threads alarm list changes, including run-once alarms deleting themselves after execution or alarms restored from disk.
- `thread/alarm/fired` — notification emitted when a thread alarm fires, either for a synthetic follow-on turn or a same-turn steer delivery.
- `thread/compact/start` — trigger conversation history compaction for a thread; returns `{}` immediately while progress streams through standard turn/item notifications.

View File

@@ -332,7 +332,7 @@
"default": null,
"description": "Optional feature toggles scoped to this profile.",
"properties": {
"alarm_scheduler": {
"alarm_tool": {
"type": "boolean"
},
"apply_patch_freeform": {
@@ -2032,7 +2032,7 @@
"default": null,
"description": "Centralized feature flags (new). Prefer this over individual toggles.",
"properties": {
"alarm_scheduler": {
"alarm_tool": {
"type": "boolean"
},
"apply_patch_freeform": {

View File

@@ -817,12 +817,8 @@ pub const FEATURES: &[FeatureSpec] = &[
},
FeatureSpec {
id: Feature::AlarmScheduler,
key: "alarm_scheduler",
stage: Stage::Experimental {
name: "Alarm Scheduler",
menu_description: "Enable thread-local scheduled alarms and the /loop command.",
announcement: "",
},
key: "alarm_tool",
stage: Stage::UnderDevelopment,
default_enabled: false,
},
FeatureSpec {