Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(harness): steer send-now content directly

cyh99551a4a44f5
diff --git a/core/internal_server.py b/core/internal_server.py
index b63befb7b..b2a331ac7 100644
--- a/core/internal_server.py
+++ b/core/internal_server.py
@@ -38,7 +38,6 @@ import socket
import stat
import tempfile
import time
-from dataclasses import replace
from pathlib import Path
from types import SimpleNamespace
from typing import Any, Optional, TYPE_CHECKING
@@ -207,9 +206,9 @@ def create_app(
) -> Any:
"""Run a Harness input through the same durable owner as interactive Chat.
- The explicit source intent decides whether it queues or steers. Send-now
- persists the new input at P3, then promotes the exact FIFO head through
- empty P1; it never stops the active Turn or jumps older queued work.
+ The explicit source intent decides whether this content queues or steers.
+ Content-bearing P1 targets this Delivery; content-free P1 promotion is
+ exposed separately through ``SessionTurnManager.send_now``.
The submission remains a Delivery until exact native acceptance materializes
the harness Message.
"""
@@ -218,6 +217,7 @@ def create_app(
return submission.route
from core.message_mirror import _scope_id_for_session
+ from core.message_priority import normalize_delivery_intent
from core.session_turns import (
DeliveryRequest,
SCHEDULED_PROVENANCE_KEY,
@@ -245,6 +245,7 @@ def create_app(
scope_id: str | None = None
delivery_owner_transferred = False
target_was_busy = False
+ delivery_intent = normalize_delivery_intent(delivery_intent)
effective_delivery_intent = delivery_intent
execution_id = str(
(context.platform_specific or {}).get("task_execution_id") or ""
@@ -313,28 +314,23 @@ def create_app(
target_was_busy=target_was_busy,
delivery_status="canceled",
)
- if not (
- delivery_intent == "send_now"
- and existing_state == "queued"
- ):
- return TurnSubmissionResult(
- route=(
- "enqueued"
- if existing_state
- in {
- "queued",
- "interrupt_waiting",
- "waiting_terminal",
- "reconciling_steer",
- }
- else "ran"
- ),
- queue_persisted=True,
- target_was_busy=target_was_busy,
- delivery_status=existing_state,
- delivery_owner_transferred=True,
- )
- delivery_owner_transferred = True
+ return TurnSubmissionResult(
+ route=(
+ "enqueued"
+ if existing_state
+ in {
+ "queued",
+ "interrupt_waiting",
+ "waiting_terminal",
+ "reconciling_steer",
+ }
+ else "ran"
+ ),
+ queue_persisted=True,
+ target_was_busy=target_was_busy,
+ delivery_status=existing_state,
+ delivery_owner_transferred=True,
+ )
if not delivery_owner_transferred:
return "duplicate"
if legacy_accepted:
@@ -353,16 +349,7 @@ def create_app(
persisted_intent = delivery_intent_for_priority(
delivery_request.priority
)
- effective_delivery_intent = (
- "send_now"
- if delivery_intent == "send_now"
- and delivery_request.priority == "p3"
- else persisted_intent
- )
- delivery_request = replace(
- delivery_request,
- admission_only=effective_delivery_intent == "send_now",
- )
+ effective_delivery_intent = persisted_intent
provenance = (delivery_request.metadata or {}).get(
SCHEDULED_PROVENANCE_KEY
)
@@ -380,11 +367,7 @@ def create_app(
delivery_id = message_deliveries.new_delivery_id()
admitted_state = "reserved"
- priority = (
- "p3"
- if delivery_intent == "send_now"
- else priority_for_delivery_intent(delivery_intent)
- )
+ priority = priority_for_delivery_intent(delivery_intent)
message_deliveries.insert_delivery(
conn,
delivery_id=delivery_id,
@@ -448,11 +431,7 @@ def create_app(
delivery_request = DeliveryRequest(
session_id=session_id,
- priority=(
- "p3"
- if delivery_intent == "send_now"
- else priority_for_delivery_intent(delivery_intent)
- ),
+ priority=priority_for_delivery_intent(delivery_intent),
content=text,
delivery_id=delivery_id,
scope_id=scope_id,
@@ -467,7 +446,6 @@ def create_app(
SCHEDULED_PROVENANCE_KEY: capture_scheduled_provenance(context)
},
native_message_id=native_message_id or None,
- admission_only=delivery_intent == "send_now",
)
if context.platform_specific is None:
@@ -536,25 +514,6 @@ def create_app(
delivery_owner_transferred=True,
)
delivery_state = str(result.state)
- if effective_delivery_intent == "send_now":
- with get_cached_sqlite_engine().connect() as conn:
- admitted = message_deliveries.get_delivery(conn, delivery_id)
- observed_head = message_deliveries.ordering_head(conn, session_id)
- if (
- admitted is not None
- and admitted["state"] == "queued"
- and observed_head is not None
- and observed_head["state"] == "queued"
- ):
- await manager.send_now(
- session_id,
- expected_delivery_id=str(observed_head["id"]),
- )
- with get_cached_sqlite_engine().connect() as conn:
- latest = message_deliveries.get_delivery(conn, delivery_id)
- if latest is not None:
- delivery_state = str(latest["state"])
-
route = "enqueued" if delivery_state in {
"queued",
"pending_steer",
@@ -567,39 +526,36 @@ def create_app(
route=route,
queue_persisted=True,
target_was_busy=target_was_busy,
- delivery_status=(
- delivery_state if effective_delivery_intent == "send_now" else None
- ),
+ delivery_status=delivery_state,
delivery_owner_transferred=delivery_owner_transferred,
)
_publish_scheduled_queue_growth(session_id, delivery_state)
- if effective_delivery_intent == "send_now":
+ if delivery_owner_transferred and execution_id:
try:
with run_update_event_transaction(get_cached_sqlite_engine()) as conn:
recorded = record_agent_run_delivery_outcome_in_connection(
conn,
execution_id,
{
- "intent": "send_now",
+ "intent": effective_delivery_intent,
"status": delivery_state,
"target_was_busy": submission.target_was_busy,
},
)
if not recorded:
logger.warning(
- "send-now Agent Run outcome lost its exact CAS after Delivery "
- "ownership transfer: run=%s delivery=%s",
+ "Agent Run Delivery outcome lost its exact CAS after ownership "
+ "transfer: run=%s delivery=%s",
execution_id,
delivery_id,
)
except Exception:
logger.exception(
- "send-now Agent Run outcome persistence deferred after Delivery "
- "ownership transfer: run=%s delivery=%s",
+ "Agent Run Delivery outcome persistence deferred after ownership "
+ "transfer: run=%s delivery=%s",
execution_id,
delivery_id,
)
- return submission
return submission if delivery_owner_transferred else route
@app.get("/internal/health")
diff --git a/core/message_priority.py b/core/message_priority.py
index 155f81e06..7023f1f7c 100644
--- a/core/message_priority.py
+++ b/core/message_priority.py
@@ -26,13 +26,24 @@ _INTENT_BY_TRIGGER: dict[str, DeliveryIntent] = {
"callback": "steer",
}
+_LEGACY_INTENT_ALIASES = {
+ # Agent Run once used this as a separate "queue then promote" policy.
+ # A content-bearing send-now is P1 steering; only content-free P1 promotes
+ # an existing queue head.
+ "send_now": "steer",
+}
+
+
+def normalize_delivery_intent(intent: str) -> DeliveryIntent:
+ normalized = str(intent or "").strip().lower()
+ normalized = _LEGACY_INTENT_ALIASES.get(normalized, normalized)
+ if normalized not in _PRIORITY_BY_INTENT:
+ raise ValueError(f"unsupported delivery intent: {intent}")
+ return cast(DeliveryIntent, normalized)
+
def priority_for_delivery_intent(intent: str) -> DeliveryPriority:
- normalized = cast(DeliveryIntent, str(intent or "").strip())
- try:
- return _PRIORITY_BY_INTENT[normalized]
- except KeyError as exc:
- raise ValueError(f"unsupported delivery intent: {intent}") from exc
+ return _PRIORITY_BY_INTENT[normalize_delivery_intent(intent)]
def delivery_intent_for_priority(priority: str) -> DeliveryIntent:
diff --git a/core/run_settlement.py b/core/run_settlement.py
index 7003f0ed9..f87b088c9 100644
--- a/core/run_settlement.py
+++ b/core/run_settlement.py
@@ -380,7 +380,7 @@ _SWEEP_TURN = (
)
_SEND_NOW = (
"tests/test_internal_server.py::"
- "test_agent_run_send_now_steers_the_fifo_head_without_stopping"
+ "test_agent_run_send_now_steers_its_content_without_promoting_fifo"
)
_SEND_NOW_RESTART = (
"tests/test_internal_server.py::"
diff --git a/core/scheduled_tasks.py b/core/scheduled_tasks.py
index ef06e7d0c..c2c98963d 100644
--- a/core/scheduled_tasks.py
+++ b/core/scheduled_tasks.py
@@ -134,19 +134,15 @@ logger = logging.getLogger(__name__)
_TaskStoreResult = TypeVar("_TaskStoreResult")
AGENT_RUN_DELIVERY_STEER = "steer"
-AGENT_RUN_DELIVERY_SEND_NOW = "send_now"
AGENT_RUN_DELIVERY_QUEUE = "queue"
AGENT_RUN_DELIVERY_INTENTS = frozenset(
{
AGENT_RUN_DELIVERY_STEER,
- AGENT_RUN_DELIVERY_SEND_NOW,
AGENT_RUN_DELIVERY_QUEUE,
}
)
AGENT_RUN_DELIVERY_INTENT_METADATA_KEY = "delivery_intent"
AGENT_RUN_DELIVERY_OUTCOME_METADATA_KEY = "delivery_outcome"
-FAILURE_CODE_SEND_NOW_GATE_UNAVAILABLE = "send_now_requires_turn_gate"
-SEND_NOW_GATE_UNAVAILABLE_I18N_KEY = "harness.run.sendNowGateUnavailable"
def _publish_task_definitions_updated() -> None:
@@ -234,7 +230,9 @@ def _json_loads(value: str | None, default: Any) -> Any:
def normalize_agent_run_delivery_intent(value: Any) -> str:
"""Return the durable Agent Run delivery intent or reject an unknown value."""
- normalized = str(value or AGENT_RUN_DELIVERY_STEER).strip().lower()
+ from core.message_priority import normalize_delivery_intent
+
+ normalized = normalize_delivery_intent(value or AGENT_RUN_DELIVERY_STEER)
if normalized not in AGENT_RUN_DELIVERY_INTENTS:
raise ValueError(f"unsupported Agent Run delivery intent: {normalized}")
return normalized
@@ -8633,12 +8631,6 @@ class ScheduledTaskService:
delivery_intent = normalize_agent_run_delivery_intent(
(metadata or {}).get(AGENT_RUN_DELIVERY_INTENT_METADATA_KEY)
)
- if session_id and delivery_intent == AGENT_RUN_DELIVERY_SEND_NOW and gate is None:
- return AgentRunExecutionResult(
- error=self._t(SEND_NOW_GATE_UNAVAILABLE_I18N_KEY),
- complete_on_return=True,
- failure_code=FAILURE_CODE_SEND_NOW_GATE_UNAVAILABLE,
- )
if session_id and gate is not None:
if delivery_intent != AGENT_RUN_DELIVERY_STEER:
state = await gate.submit_scheduled(
@@ -8657,11 +8649,7 @@ class ScheduledTaskService:
"status": state.delivery_status or state.route,
"target_was_busy": state.target_was_busy,
}
- if (
- delivery_intent == AGENT_RUN_DELIVERY_SEND_NOW
- and isinstance(state, TurnSubmissionResult)
- and state.delivery_status == "canceled"
- ):
+ if isinstance(state, TurnSubmissionResult) and state.delivery_status == "canceled":
self.request_store.settle_without_result(
execution_id,
terminal_status="canceled",
diff --git a/core/system_prompt_injection.py b/core/system_prompt_injection.py
index 0bc844998..7c86c4b2c 100644
--- a/core/system_prompt_injection.py
+++ b/core/system_prompt_injection.py
@@ -331,7 +331,7 @@ Use `vibe agent run --fork-self --message ...` when work should branch from this
When `vibe agent run --session-id <id>` targets an existing Session, it sends a new message into that Session. It does not change that Session's cwd, scope, Agent, model, or reasoning settings; those properties belong to the Session itself. Use a new Session or a fork when those properties need to differ.
-That existing-Session send is a P1 delivery by default: it steers into an active native Turn, starts immediately when idle, and falls back to the durable P3 queue if steering is definitively refused or no longer active. Use `--queue` when the new Run should enter that P3 queue without steering. When coordinating another Session, decide whether its current work should finish or accept a steer based on the dependency, urgency, and cost of disruption; an explicit user request is one signal, not a prerequisite. Use `vibe agent run --session-id <id> --send-now --message ...` to persist the new Run at P3 and then promote the exact FIFO head through P1. If older work is queued, that older head is promoted first; the new message never leapfrogs it. Use `vibe session send-now <id>` for the same exact-head P1 promotion without adding a Message. If a native Turn is active, the promoted head steers that same logical/native Turn; if the Session is idle, it starts as a new Turn. Both forms work for Workbench and IM Sessions. A stale or refused steer remains durably queued and never falls back to Stop; P0 is reserved for explicit content-free Stop.
+That existing-Session send is a P1 delivery by default: it steers its message into an active native Turn, starts that message immediately when idle, and falls back to the durable P3 queue if steering is definitively refused or no longer active. Use `--queue` when the new Run should enter that P3 queue without steering. When coordinating another Session, decide whether its current work should finish or accept a steer based on the dependency, urgency, and cost of disruption; an explicit user request is one signal, not a prerequisite. `vibe agent run --session-id <id> --send-now --message ...` explicitly selects that same content-bearing P1 behavior; it does not promote an older queued message. Use `vibe session send-now <id>` only when no new Message should be added: this content-free P1 promotes the exact existing FIFO head. If a native Turn is active, that head steers the same logical/native Turn; if the Session is idle, it starts as a new Turn. Both commands work for Workbench and IM Sessions. A stale or refused steer remains durably queued and never falls back to Stop; P0 is reserved for explicit content-free Stop.
Coordinating Agents can inspect the same durable Workbench queue the user sees with `vibe session queue list <id>`. If one queued instruction has become obsolete, contradictory, or duplicated, remove that exact row with `vibe session queue remove <id> <message-id>`. Always list first and use the returned stable message id; never guess an id or delete a different row to simulate reordering.
diff --git a/docs/CLI.md b/docs/CLI.md
index c610a20bf..a1bbb094b 100644
--- a/docs/CLI.md
+++ b/docs/CLI.md
@@ -325,12 +325,13 @@ new Run into an active native Turn, starts it immediately when idle, or moves th
same Delivery to the durable P3 queue after a definitive refusal/not-active
receipt. It does not interrupt the active Turn.
-`--send-now` is valid only with an existing `--session-id`. Avibe persists the
-new Run at P3 first, then promotes the exact FIFO head through P1. With an active
-Turn that head steers the same native Turn; when idle it starts normally. Older
-queued work remains ahead of the new Run. `vibe session send-now` uses the same
-exact-head promotion without adding a message. A stale head is refused rather
-than replaced by the next queued item, and neither form calls Stop.
+`--send-now` is valid only with an existing `--session-id` and explicitly selects
+the normal content-bearing P1 behavior: the new message steers an active native
+Turn, starts immediately when idle, and falls back to P3 after a definitive
+refusal. It never promotes an older queued message. `vibe session send-now` is
+the content-free P1 operation: it promotes the exact existing FIFO head without
+adding a message. A stale head is refused rather than replaced by the next queued
+item, and neither command calls Stop.
Use `--fork-session <session-id>` when a new Agent Session should branch from
an existing Session's native backend context instead of starting blank. The new
diff --git a/docs/CLI_ZH.md b/docs/CLI_ZH.md
index 31900df89..1dbfdd753 100644
--- a/docs/CLI_ZH.md
+++ b/docs/CLI_ZH.md
@@ -294,11 +294,11 @@ vibe agent run --session-id sesworker123 --callback-session-id sescaller456 --me
vibe agent run --no-callback --create-session --scope-id slack::channel::C999 --agent release-reviewer --message 'Post the deployment summary.'
```
-`--send-now` 只能和现有 `--session-id` 一起使用。Avibe 会先把新的 Agent Run
-以 P3 持久化,再通过 P1 提升精确的 FIFO 队头。活动 Turn 存在时,队头会 steering
-进同一个 backend native Turn;Session 空闲时则正常启动。新消息不会越过更早的
-排队工作。`vibe session send-now` 执行相同的精确队头提升,但不会新增消息。
-两种形式都不会调用 Stop;过期或被拒绝的 steering 会保持持久化排队。
+`--send-now` 只能和现有 `--session-id` 一起使用,它显式选择普通的带内容 P1
+语义:新消息会 steering 进活动 native Turn,Session 空闲时立即启动;只有明确
+拒绝后才回退到 P3。它不会提升更早的排队消息。`vibe session send-now` 是无内容
+P1 操作,只提升现有的精确 FIFO 队头,不新增消息。过期队头会被拒绝,而不会改为
+提升下一条;两个命令都不会调用 Stop。
当一个新 Agent Session 需要从现有 Session 的 native backend 上下文分叉,而不是空白开始时,
使用 `--fork-session <session-id>`。新 Session 会保持源 Session 的 backend。
diff --git a/docs/COMMANDS.md b/docs/COMMANDS.md
index 2d59a0f3e..0b0a3ae86 100644
--- a/docs/COMMANDS.md
+++ b/docs/COMMANDS.md
@@ -904,9 +904,10 @@ result later. Use `--sync` only when the terminal should wait for completion.
With an existing `--session-id`, the default is P1: steer the new Run into an
active native Turn, start it when idle, or move the same Delivery to P3 after a
definitive refusal/not-active receipt. `--queue` selects P3 without attempting a
-steer. `--send-now` persists the new Run at P3, then promotes the exact FIFO head
-through P1, so it neither stops the active Turn nor jumps older work. `vibe
-session send-now` performs that exact-head promotion without adding a message.
+steer. For an existing Session, `--send-now` explicitly selects the same
+content-bearing P1 behavior; it targets the new message and never promotes older
+queued work. `vibe session send-now` is the content-free P1 operation that
+promotes the exact existing FIFO head without adding a message.
`--fork-session <session_id>` creates a new Agent Session by forking the source
Session's native backend context. It is for alternate investigations or
diff --git a/docs/COMMANDS_ZH.md b/docs/COMMANDS_ZH.md
index e337965d5..067dfbbe4 100644
--- a/docs/COMMANDS_ZH.md
+++ b/docs/COMMANDS_ZH.md
@@ -873,12 +873,12 @@ Run 默认异步:命令会队列化 run,立即返回包含 `run_id` / `sessi
payload,并按 callback 策略稍后投递最终结果。只有终端需要等待完成时才使用
`--sync`。`--async` 仍兼容旧脚本,但不再需要显式传入。
-和现有 `--session-id` 一起使用时,`--send-now` 会先持久化 Agent Run,
-然后复用 Workbench 的 Session 级打断并发送操作:通过共享 Stop 路径停止活动
-Turn,再把现有 FIFO 队头作为新 Turn 发送。它不提供同 Turn steering,也不重排
-队列;如果打断被拒绝,Run 会继续保持排队。命令响应包含
-`delivery_intent`,Controller 消费请求后,`vibe runs show <run-id>` 会显示持久化的
-`metadata.delivery_outcome`。
+对于现有 `--session-id`,默认投递是 P1:新消息会 steering 进活动 native Turn,
+Session 空闲时立即启动;明确拒绝后,同一个 Delivery 才回退到 P3。`--queue` 会
+直接选择 P3。`--send-now` 显式选择相同的带内容 P1 语义,只针对这条新消息,
+不会提升更早的排队工作。`vibe session send-now` 是无内容 P1 操作,只提升现有的
+精确 FIFO 队头,不新增消息。命令响应包含 `delivery_intent`,Controller 消费请求后,
+`vibe runs show <run-id>` 会显示持久化的 `metadata.delivery_outcome`。
`--fork-session <session_id>` 会基于源 Session 的 native backend 上下文创建一个新的
Agent Session,适合在保留上下文的同时做分支调查或委派工作,而不修改源 Session。
diff --git a/docs/plans/agent-message-priority.md b/docs/plans/agent-message-priority.md
index af8762133..cc66657d9 100644
--- a/docs/plans/agent-message-priority.md
+++ b/docs/plans/agent-message-priority.md
@@ -91,7 +91,7 @@ instead of claiming equivalent durability.
| --- | --- | --- |
| Web composer | P3 | Starts when idle; otherwise joins the FIFO backlog. |
| Ordinary IM message | P1 | Steers the active Turn or starts when idle; a definitive refusal falls back to P3. |
-| Existing-Session Agent Run | P1 | Same as ordinary IM. `--queue` selects P3. `--send-now` first persists the new Run at P3, then promotes the exact FIFO head through P1; it never stops the active Turn or jumps older work. |
+| Existing-Session Agent Run | P1 | Same as ordinary IM. `--queue` selects P3. `--send-now` explicitly selects the same content-bearing P1 behavior and never promotes older queued work. |
| Watch, Hook, Webhook | P1 | Continues the target Session without interrupting it. |
| Show annotation | P1 | Delivers the annotation to the current Turn when possible. |
| Session callback | P1 | Delivers each completed child Run independently. |
diff --git a/docs/plans/session-delivery-foundation.md b/docs/plans/session-delivery-foundation.md
index a4d2d3cf3..ef716c415 100644
--- a/docs/plans/session-delivery-foundation.md
+++ b/docs/plans/session-delivery-foundation.md
@@ -128,10 +128,10 @@ live Session/Run bindings and cannot mutate an unaccepted Delivery snapshot.
- existing-Session Agent Run and Watch input is P1 by default; it steers the
active Turn, starts itself when idle, and falls back to P3 only after a
definitive refusal or not-active receipt;
-- Agent Run send-now persists its new input at P3, then promotes the exact
- current P3 head segment through empty P1, so older work cannot be bypassed;
-- Session send-now performs the same exact-head P1 promotion without adding
- content;
+- Agent Run send-now is an explicit alias for the same content-bearing P1
+ behavior and never promotes older queued work;
+- Session send-now is the content-free P1 operation that promotes the exact
+ existing head without adding content;
- P0 is reserved for explicit content-free Stop.
On startup, OpenCode first restores the exact logical/runtime/native identity
diff --git a/skills/use-avibe/SKILL.md b/skills/use-avibe/SKILL.md
index f2e2308e7..ee00a46ea 100644
--- a/skills/use-avibe/SKILL.md
+++ b/skills/use-avibe/SKILL.md
@@ -789,7 +789,7 @@ Preferred CLI shape:
- delegate to a visible sibling Session in the same scope from an Avibe Agent shell: `vibe agent run --agent '<agent-name>' --same-scope --message '...'`
- wait for an Agent result in the terminal: `vibe agent run --sync --agent '<agent-name>' --message '...'`
- continue a specific existing Session: `vibe agent run --session-id '<session-id>' --message '...'`
-- persist a new message and steer the exact FIFO head into the active Turn: `vibe agent run --session-id '<session-id>' --send-now --message '...'`
+- explicitly steer a new message as P1 into the active Turn: `vibe agent run --session-id '<session-id>' --send-now --message '...'`
- steer an already-queued exact head without adding a message: `vibe session send-now '<session-id>'`
- inspect another Session's durable FIFO queue: `vibe session queue list '<session-id>'`
- remove one exact queued message after inspecting its stable ID: `vibe session queue remove '<session-id>' '<message-id>'`
@@ -813,9 +813,9 @@ Targeting and callbacks:
- Use `--session-id <id>` only when the command should operate on a different existing Agent Session.
- When `vibe agent run --session-id <id>` targets an existing Session, it sends a new message into that Session. It does not change that Session's cwd, scope, Agent, model, or reasoning settings.
- When coordinating another Workbench Session, decide whether its current turn should finish or be preempted from the work dependency, urgency, and cost of discarding in-flight work. An explicit user request is one signal, not a prerequisite.
-- Add `--send-now` when a newly persisted Agent Run should also promote the exact FIFO head through same-turn steering. If older work is already queued, that older head is promoted first; the new message never leapfrogs it.
+- Add `--send-now` to explicitly select the normal content-bearing P1 behavior for an existing Session. It steers that new message into an active Turn, starts it when idle, and falls back to P3 only after a definitive refusal; it never promotes an older queued message.
- Use `vibe session send-now <session-id>` when a Session already has queued work and no new message should be added. This promotes the existing FIFO head.
-- Both send-now forms use the shared steering path for Workbench and IM Sessions. A refused or stale steer leaves the input durably queued and never falls back to Stop.
+- Both commands use the shared steering path for Workbench and IM Sessions. A refused or stale steer leaves the affected input durably queued and never falls back to Stop.
- Use `vibe session queue list <session-id>` before changing another Workbench Session's queue. If an instruction is obsolete, contradictory, or duplicated, remove that exact stable row with `vibe session queue remove <session-id> <message-id>`. Never guess a message ID or delete another row to simulate reordering.
- When `vibe agent run` creates a new Session, the default placement is private/background. Add `--same-scope` for a visible sibling Session in the same Workbench project or IM scope, or `--scope-id <scopes.id>` for a specific existing scope.
- When a task, watch, or new Agent run creates a Session and `--cwd` is omitted, Avibe uses the command's current working directory. Forks keep the source Session cwd by default.
diff --git a/skills/use-vibe-remote/SKILL.md b/skills/use-vibe-remote/SKILL.md
index 670984753..45a2ef340 100644
--- a/skills/use-vibe-remote/SKILL.md
+++ b/skills/use-vibe-remote/SKILL.md
@@ -773,7 +773,7 @@ Preferred CLI shape:
- delegate to a visible sibling Session in the same scope from an Avibe Agent shell: `vibe agent run --agent '<agent-name>' --same-scope --message '...'`
- wait for an Agent result in the terminal: `vibe agent run --sync --agent '<agent-name>' --message '...'`
- continue a specific existing Session: `vibe agent run --session-id '<session-id>' --message '...'`
-- persist a new message and steer the exact FIFO head into the active Turn: `vibe agent run --session-id '<session-id>' --send-now --message '...'`
+- explicitly steer a new message as P1 into the active Turn: `vibe agent run --session-id '<session-id>' --send-now --message '...'`
- steer an already-queued exact head without adding a message: `vibe session send-now '<session-id>'`
- inspect another Session's durable FIFO queue: `vibe session queue list '<session-id>'`
- remove one exact queued message after inspecting its stable ID: `vibe session queue remove '<session-id>' '<message-id>'`
@@ -797,9 +797,9 @@ Targeting and callbacks:
- Use `--session-id <id>` only when the command should operate on a different existing Agent Session.
- When `vibe agent run --session-id <id>` targets an existing Session, it sends a new message into that Session. It does not change that Session's cwd, scope, Agent, model, or reasoning settings.
- When coordinating another Workbench Session, decide whether its current turn should finish or be preempted from the work dependency, urgency, and cost of discarding in-flight work. An explicit user request is one signal, not a prerequisite.
-- Add `--send-now` when a newly persisted Agent Run should also promote the exact FIFO head through same-turn steering. If older work is already queued, that older head is promoted first; the new message never leapfrogs it.
+- Add `--send-now` to explicitly select the normal content-bearing P1 behavior for an existing Session. It steers that new message into an active Turn, starts it when idle, and falls back to P3 only after a definitive refusal; it never promotes an older queued message.
- Use `vibe session send-now <session-id>` when a Session already has queued work and no new message should be added. This promotes the existing FIFO head.
-- Both send-now forms use the shared steering path for Workbench and IM Sessions. A refused or stale steer leaves the input durably queued and never falls back to Stop.
+- Both commands use the shared steering path for Workbench and IM Sessions. A refused or stale steer leaves the affected input durably queued and never falls back to Stop.
- Use `vibe session queue list <session-id>` before changing another Workbench Session's queue. If an instruction is obsolete, contradictory, or duplicated, remove that exact stable row with `vibe session queue remove <session-id> <message-id>`. Never guess a message ID or delete another row to simulate reordering.
- When `vibe agent run` creates a new Session, the default placement is private/background. Add `--same-scope` for a visible sibling Session in the same Workbench project or IM scope, or `--scope-id <scopes.id>` for a specific existing scope.
- When a task, watch, or new Agent run creates a Session and `--cwd` is omitted, Avibe uses the command's current working directory. Forks keep the source Session cwd by default.
diff --git a/tests/scenarios/harness_failure_recovery/catalog.yaml b/tests/scenarios/harness_failure_recovery/catalog.yaml
index 2c0763459..58bfa3fd9 100644
--- a/tests/scenarios/harness_failure_recovery/catalog.yaml
+++ b/tests/scenarios/harness_failure_recovery/catalog.yaml
@@ -3825,16 +3825,15 @@ scenarios:
# work into one tail-boundary rewind while the durable store retains the inventory.
test: tests/test_runtime_work_supervisor.py::test_hfr_288_expired_backoff_preserves_forward_scan_before_retry
- id: HFR-430
- name: an Agent Run send-now steers the exact FIFO head without stopping
+ name: an Agent Run send-now steers its own content without promoting the FIFO head
status: covered
kind: recovery
layer: contract
backend: shared
- # The delivery intent is durable on the Agent Run. The shared owner first
- # persists the harness-attributed row at P3, then promotes the exact FIFO head
- # through empty P1. An active native Turn is steered without Stop, older queued
- # work cannot be bypassed, and a refused or stale steer stays durably queued.
- test: tests/test_internal_server.py::test_agent_run_send_now_steers_the_fifo_head_without_stopping
+ # The content-bearing legacy send-now alias normalizes to durable P1 steering.
+ # It steers that exact content into an active native Turn without Stop and does
+ # not promote an older P3 queue head. Refused or stale steering falls back to P3.
+ test: tests/test_internal_server.py::test_agent_run_send_now_steers_its_content_without_promoting_fifo
- id: HFR-431
name: a terminal Turn racing a successful Stop receipt remains a successful cancel
status: covered
diff --git a/tests/test_cli_agent_run_schema.py b/tests/test_cli_agent_run_schema.py
index 3a5815d41..27b8ca889 100644
--- a/tests/test_cli_agent_run_schema.py
+++ b/tests/test_cli_agent_run_schema.py
@@ -419,7 +419,7 @@ def test_agent_run_async_defaults_callback_from_caller_env(tmp_path: Path, capsy
assert stored["metadata"]["caller_context"]["session_id"] == caller_session["id"]
-def test_agent_run_send_now_is_durable_on_an_existing_session(
+def test_agent_run_send_now_is_explicit_p1_on_an_existing_session(
tmp_path: Path,
capsys,
) -> None:
@@ -489,12 +489,12 @@ def test_agent_run_send_now_is_durable_on_an_existing_session(
assert result == 0
payload = json.loads(capsys.readouterr().out)
- assert payload["delivery_intent"] == "send_now"
- assert payload["run"]["delivery_intent"] == "send_now"
+ assert payload["delivery_intent"] == "steer"
+ assert payload["run"]["delivery_intent"] == "steer"
stored = request_store.get_run(payload["run_id"])
assert stored is not None
assert stored["session_id"] == session_id
- assert stored["metadata"]["delivery_intent"] == "send_now"
+ assert stored["metadata"]["delivery_intent"] == "steer"
def test_agent_run_send_now_rejects_a_new_session(capsys) -> None:
@@ -667,10 +667,10 @@ def test_agent_run_send_now_accepts_an_im_backed_session(
assert result == 0
payload = json.loads(capsys.readouterr().out)
assert payload["session_id"] == session["id"]
- assert payload["delivery_intent"] == "send_now"
+ assert payload["delivery_intent"] == "steer"
stored = request_store.get_run(payload["run_id"])
assert stored is not None
- assert stored["metadata"]["delivery_intent"] == "send_now"
+ assert stored["metadata"]["delivery_intent"] == "steer"
def test_agent_run_async_self_target_defaults_to_no_callback(
diff --git a/tests/test_internal_server.py b/tests/test_internal_server.py
index 1a3352771..412f497a9 100644
--- a/tests/test_internal_server.py
+++ b/tests/test_internal_server.py
@@ -3117,8 +3117,8 @@ def test_scheduled_gate_busy_enqueues_and_leaves_chat_turn_untouched(monkeypatch
assert ("queue.updated", {"session_id": session_id}) in published
-def test_agent_run_send_now_steers_the_fifo_head_without_stopping(monkeypatch, tmp_path):
- """HFR-430: send-now persists first, then steers the exact FIFO head."""
+def test_agent_run_send_now_steers_its_content_without_promoting_fifo(monkeypatch, tmp_path):
+ """HFR-430: content-bearing send-now is P1 for that exact content."""
from core.scheduled_tasks import TaskExecutionStore
from core.services import sessions as sessions_service
from storage.db import create_sqlite_engine
@@ -3190,6 +3190,13 @@ def test_agent_run_send_now_steers_the_fifo_head_without_stopping(monkeypatch, t
)
assert response.status_code == 202
await asyncio.wait_for(original_started.wait(), timeout=3)
+ with engine.begin() as conn:
+ message_deliveries.enqueue_queued(
+ conn,
+ scope_id=scope_id,
+ session_id=session_id,
+ text="older queued input",
+ )
context = MessageContext(
user_id="workbench",
channel_id=session_id,
@@ -3225,20 +3232,23 @@ def test_agent_run_send_now_steers_the_fifo_head_without_stopping(monkeypatch, t
)
controller.command_handler.handle_stop.assert_not_awaited()
controller.session_turns._steer.assert_awaited_once()
+ assert controller.session_turns._steer.await_args.args[1].text == "apply the correction"
assert seen == [("original work", SOURCE_HUMAN)]
with engine.connect() as conn:
- assert message_deliveries.list_queued(conn, session_id) == []
+ assert [row["text"] for row in message_deliveries.list_queued(conn, session_id)] == [
+ "older queued input"
+ ]
stored = request_store.get_run(request.id)
assert stored is not None
assert stored["metadata"]["delivery_outcome"] == {
- "intent": "send_now",
+ "intent": "steer",
"status": "accepted",
"target_was_busy": True,
}
-def test_agent_run_send_now_promotes_a_turn_started_during_admission(monkeypatch, tmp_path):
- """A stale idle snapshot cannot downgrade explicit send-now into P3 queueing."""
+def test_agent_run_send_now_steers_a_turn_started_during_admission(monkeypatch, tmp_path):
+ """A stale idle snapshot cannot downgrade explicit P1 into P3 queueing."""
from core.scheduled_tasks import TaskExecutionStore
from core.services import sessions as sessions_service
from storage.db import create_sqlite_engine
@@ -3282,7 +3292,7 @@ def test_agent_run_send_now_promotes_a_turn_started_during_admission(monkeypatch
async def _deliver_with_race(delivery_request, *, context=None):
nonlocal inserted_racer
- if delivery_request.admission_only and not inserted_racer:
+ if not inserted_racer:
inserted_racer = True
with engine.begin() as conn:
owner = _reserve_submission(
@@ -3436,14 +3446,14 @@ def test_agent_run_send_now_refusal_keeps_the_turn_and_queue(monkeypatch, tmp_pa
assert stored["delivery_id"] == queued[0]["id"]
assert "workbench_queue_holds_run" not in stored["metadata"]
assert stored["metadata"]["delivery_outcome"] == {
- "intent": "send_now",
+ "intent": "steer",
"status": "queued",
"target_was_busy": True,
}
-def test_agent_run_send_now_retry_promotes_its_persisted_queue_head(monkeypatch, tmp_path):
- """A retry reuses the owned P3 Delivery instead of losing send-now intent."""
+def test_agent_run_send_now_retry_keeps_its_refused_p3_fallback_queued(monkeypatch, tmp_path):
+ """A retry does not promote a P1 Delivery after it has fallen back to P3."""
from core.scheduled_tasks import TaskExecutionStore
monkeypatch.setenv("AVIBE_HOME", str(tmp_path))
@@ -3497,13 +3507,19 @@ def test_agent_run_send_now_retry_promotes_its_persisted_queue_head(monkeypatch,
first, second = asyncio.run(_go())
assert first.delivery_status == "queued"
- assert second.delivery_status == "accepted"
- assert controller.session_turns._steer.await_count == 2
+ assert second.delivery_status == "queued"
+ assert controller.session_turns._steer.await_count == 1
with engine.connect() as conn:
- assert message_deliveries.list_queued(conn, session_id) == []
+ assert [row["text"] for row in message_deliveries.list_queued(conn, session_id)] == [
+ "retry this correction"
+ ]
stored = request_store.get_run(request.id)
assert stored is not None
- assert stored["metadata"]["delivery_outcome"]["status"] == "accepted"
+ assert stored["metadata"]["delivery_outcome"] == {
+ "intent": "steer",
+ "status": "queued",
+ "target_was_busy": True,
+ }
def test_concurrent_agent_run_send_now_callers_steer_in_fifo_order(
@@ -3647,7 +3663,7 @@ def test_concurrent_agent_run_send_now_callers_steer_in_fifo_order(
stored = request_store.get_run(request.id)
assert stored is not None
assert stored["metadata"]["delivery_outcome"] == {
- "intent": "send_now",
+ "intent": "steer",
"status": expected_status,
"target_was_busy": True,
}
@@ -3759,12 +3775,12 @@ def test_agent_run_send_now_restart_preserves_refused_queue_behind_durable_owner
]
stored = request_store.get_run(request.id)
assert stored is not None
- assert stored["metadata"]["delivery_intent"] == "send_now"
+ assert stored["metadata"]["delivery_intent"] == "steer"
assert stored["metadata"]["delivery_outcome"]["status"] == "queued"
-def test_agent_run_send_now_on_an_idle_backlog_does_not_stop_the_head(monkeypatch, tmp_path):
- """An idle backlog starts in FIFO order without a post-submit interrupt race."""
+def test_agent_run_send_now_on_an_idle_backlog_starts_its_own_content(monkeypatch, tmp_path):
+ """Content-bearing P1 starts itself and leaves an older P3 head queued."""
from core.scheduled_tasks import TaskExecutionStore
from core.services import sessions as sessions_service
from storage import messages_service
@@ -3841,16 +3857,16 @@ def test_agent_run_send_now_on_an_idle_backlog_does_not_stop_the_head(monkeypatc
result = asyncio.run(_go())
assert result == session_turns.TurnSubmissionResult(
- route="enqueued",
+ route="ran",
queue_persisted=True,
target_was_busy=False,
- delivery_status="queued",
+ delivery_status="claimed",
delivery_owner_transferred=True,
)
- assert seen == ["older queued input"]
+ assert seen == ["new urgent input"]
with engine.connect() as conn:
assert [row["text"] for row in message_deliveries.list_queued(conn, session_id)] == [
- "new urgent input"
+ "older queued input"
]
controller.command_handler.handle_stop.assert_not_awaited()
diff --git a/tests/test_message_priority_cutover.py b/tests/test_message_priority_cutover.py
index 5479e755f..bbc5df8a7 100644
--- a/tests/test_message_priority_cutover.py
+++ b/tests/test_message_priority_cutover.py
@@ -33,6 +33,7 @@ def test_source_policy_has_one_explicit_delivery_intent(
[
("replace", "p0"),
("steer", "p1"),
+ ("send_now", "p1"),
("queue", "p3"),
],
)
@@ -64,6 +65,12 @@ def test_agent_run_queue_intent_is_not_normalized_back_to_steer() -> None:
assert normalize_agent_run_delivery_intent("queue") == "queue"
+def test_legacy_content_send_now_is_normalized_to_steer() -> None:
+ from core.scheduled_tasks import normalize_agent_run_delivery_intent
+
+ assert normalize_agent_run_delivery_intent("send_now") == "steer"
+
+
def test_session_context_rebuilds_an_im_target_from_durable_scope(monkeypatch) -> None:
from core import internal_server
from core import scheduled_tasks
diff --git a/tests/test_reply_enhancer_platform.py b/tests/test_reply_enhancer_platform.py
index b42a825eb..2ff207e94 100644
--- a/tests/test_reply_enhancer_platform.py
+++ b/tests/test_reply_enhancer_platform.py
@@ -1648,7 +1648,7 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):
prompt,
)
self.assertIn(
- "Both forms work for Workbench and IM Sessions",
+ "Both commands work for Workbench and IM Sessions",
prompt,
)
self.assertIn(
@@ -1672,19 +1672,19 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):
prompt,
)
self.assertIn(
- "persist the new Run at P3 and then promote the exact FIFO head through P1",
+ "explicitly selects that same content-bearing P1 behavior",
prompt,
)
self.assertIn(
- "the new message never leapfrogs it",
+ "it does not promote an older queued message",
prompt,
)
self.assertIn(
- "the same exact-head P1 promotion without adding a Message",
+ "this content-free P1 promotes the exact existing FIFO head",
prompt,
)
self.assertIn(
- "the promoted head steers that same logical/native Turn",
+ "that head steers the same logical/native Turn",
prompt,
)
self.assertIn(
diff --git a/tests/test_scheduled_tasks.py b/tests/test_scheduled_tasks.py
index 70368f9b4..08b8804bd 100644
--- a/tests/test_scheduled_tasks.py
+++ b/tests/test_scheduled_tasks.py
@@ -72,8 +72,6 @@ from core.scheduled_tasks import (
TaskDispatchResult,
TaskExecutionRequest,
TaskExecutionStore,
- FAILURE_CODE_SEND_NOW_GATE_UNAVAILABLE,
- SEND_NOW_GATE_UNAVAILABLE_I18N_KEY,
_TASK_RESULT_NOT_RECORDED_I18N_KEY,
_agent_run_message_for_request,
build_session_key_for_context,
@@ -8997,44 +8995,9 @@ def test_avibe_agent_run_routes_through_gate_without_completing_early(monkeypatc
assert handler_calls == []
-def test_avibe_agent_run_send_now_refuses_without_turn_gate(monkeypatch, tmp_path) -> None:
- """A send-now Agent Run fails typed instead of bypassing durable admission."""
- session_id = _make_avibe_session(monkeypatch, tmp_path)
- request_store = TaskExecutionStore()
- request = request_store.enqueue_agent_run(
- session_id=session_id,
- message="must stay durable",
- agent_name="codex",
- delivery_intent="send_now",
- )
- direct_calls: list[str] = []
-
- async def _handle_scheduled_message(context, message, parsed_session_key=None):
- direct_calls.append(message)
- return None
-
- controller = _avibe_controller_double(
- gate=None,
- handle_scheduled_message=_handle_scheduled_message,
- )
- service = ScheduledTaskService(
- controller=controller,
- store=ScheduledTaskStore(tmp_path / "scheduled_tasks.json"),
- request_store=request_store,
- )
-
- _run_single_request(service, request.id)
-
- stored = request_store.get_run(request.id)
- assert stored is not None
- assert stored["status"] == "failed"
- assert stored["error"] == i18n_t(SEND_NOW_GATE_UNAVAILABLE_I18N_KEY, "en")
- assert stored["metadata"]["failure_code"] == FAILURE_CODE_SEND_NOW_GATE_UNAVAILABLE
- assert direct_calls == []
-
-
def test_explicit_queue_delivery_intent_remains_queued() -> None:
assert normalize_agent_run_delivery_intent("queue") == "queue"
+ assert normalize_agent_run_delivery_intent("send_now") == "steer"
def test_busy_avibe_agent_run_send_now_keeps_transferred_owner_running(monkeypatch, tmp_path) -> None:
@@ -9049,7 +9012,7 @@ def test_busy_avibe_agent_run_send_now_keeps_transferred_owner_running(monkeypat
submitted: list[tuple] = []
handler_calls: list = []
- async def _submit_scheduled(sid, ctx, text, *, delivery_intent="queue"):
+ async def _submit_scheduled(sid, ctx, text, *, delivery_intent="steer"):
from core.session_turns import TurnSubmissionResult
submitted.append(
@@ -9095,9 +9058,9 @@ def test_busy_avibe_agent_run_send_now_keeps_transferred_owner_running(monkeypat
assert run.get("started_at") is not None
assert run.get("completed_at") is None
assert "workbench_queue_holds_run" not in (run.get("metadata") or {})
- assert run["metadata"]["delivery_intent"] == "send_now"
+ assert run["metadata"]["delivery_intent"] == "steer"
assert submitted == [
- (session_id, "run behind active workbench turn", request.id, "send_now")
+ (session_id, "run behind active workbench turn", request.id, "steer")
]
assert handler_calls == []
@@ -9113,7 +9076,7 @@ def test_send_now_refusal_keeps_transferred_delivery_running(monkeypatch, tmp_pa
agent_name="codex",
delivery_intent="send_now",
)
- async def _submit_scheduled(_sid, _ctx, _text, *, delivery_intent="queue"):
+ async def _submit_scheduled(_sid, _ctx, _text, *, delivery_intent="steer"):
return TurnSubmissionResult(
route="enqueued",
queue_persisted=True,
@@ -9236,7 +9199,7 @@ def test_send_now_runtime_uses_shared_delivery_for_im_session(monkeypatch, tmp_p
assert stored["error"] is None
assert direct_calls == []
submit_scheduled.assert_awaited_once()
- assert submit_scheduled.await_args.kwargs == {"delivery_intent": "send_now"}
+ assert submit_scheduled.await_args.kwargs == {}
def test_busy_avibe_agent_run_requeue_preserves_session_fork_metadata(monkeypatch, tmp_path) -> None:
diff --git a/vibe/cli.py b/vibe/cli.py
index d46fa6583..2008f9cb8 100644
--- a/vibe/cli.py
+++ b/vibe/cli.py
@@ -37,7 +37,6 @@ from config.v2_config import V2Config
from core.scheduled_tasks import (
AGENT_RUN_DELIVERY_QUEUE,
AGENT_RUN_DELIVERY_STEER,
- AGENT_RUN_DELIVERY_SEND_NOW,
BINDING_FOLLOWS_SESSION_METADATA_KEY,
ScheduledTaskStore,
TaskExecutionStore,
@@ -1388,7 +1387,7 @@ def _agent_run_examples_text() -> str:
Use --session-id to continue an existing Agent Session.
The default is P1: steer an active native Turn, start when idle, or fall back to the durable P3 queue.
Add --queue to persist this Run as P3 behind the active Turn.
- Add --send-now to persist the new Run and steer the exact FIFO head into the active Turn.
+ --send-now explicitly selects the same P1 content delivery for an existing Session.
To promote the exact existing P3 queue head without a new message, use: vibe session send-now <session-id>
Inspect queued work with: vibe session queue list <session-id>
Remove one exact queued row with: vibe session queue remove <session-id> <message-id>
@@ -5788,13 +5787,11 @@ def cmd_agent_run(args):
)
session_policy = _validate_run_session_policy(args, help_command="vibe agent run --help")
delivery_intent = (
- AGENT_RUN_DELIVERY_SEND_NOW
- if bool(getattr(args, "send_now", False))
- else AGENT_RUN_DELIVERY_QUEUE
+ AGENT_RUN_DELIVERY_QUEUE
if bool(getattr(args, "queue", False))
else AGENT_RUN_DELIVERY_STEER
)
- if delivery_intent == AGENT_RUN_DELIVERY_SEND_NOW and session_policy != "existing":
+ if bool(getattr(args, "send_now", False)) and session_policy != "existing":
raise TaskCliError(
"--send-now requires an existing Agent Session",
code="send_now_requires_existing_session",
@@ -6003,7 +6000,7 @@ def cmd_agent_run(args):
"parent_run_id": parent_run_id,
},
}
- if delivery_intent != AGENT_RUN_DELIVERY_STEER:
+ if bool(getattr(args, "send_now", False)) or delivery_intent != AGENT_RUN_DELIVERY_STEER:
payload["delivery_intent"] = delivery_intent
payload["run"]["delivery_intent"] = delivery_intent
if fork_result:
@@ -14169,7 +14166,7 @@ def build_parser():
agent_run_delivery_group.add_argument(
"--send-now",
action="store_true",
- help="Persist this Run, then steer the exact FIFO head without stopping the active Turn",
+ help="Explicitly deliver this Run as P1 to an existing Session (the default behavior)",
)
agent_run_delivery_group.add_argument(
"--queue",
diff --git a/vibe/i18n/en.json b/vibe/i18n/en.json
index 7356e2776..3862f9df7 100644
--- a/vibe/i18n/en.json
+++ b/vibe/i18n/en.json
@@ -91,7 +91,6 @@
"canceled": "The run was canceled before producing a result.",
"failed": "The run failed before producing a result."
},
- "sendNowGateUnavailable": "This send-now run could not be admitted because the Session turn gate is unavailable. Retry after the service finishes starting.",
"bindingUnresolvedRetry": "Pinned agent session {session} cannot accept a turn ({attempt}/{threshold}). This definition will be paused after {threshold} consecutive unresolvable-target failures. Re-point it with: vibe task update {id} --session-id <id>.",
"bindingUnresolvedPaused": "paused: pinned agent session {session} cannot accept a turn. This definition would fail on every run. Re-point it with: vibe task update {id} --session-id <id>; then resume it with: vibe task resume {id}."
},
diff --git a/vibe/i18n/zh.json b/vibe/i18n/zh.json
index 92b6f2529..8cd962451 100644
--- a/vibe/i18n/zh.json
+++ b/vibe/i18n/zh.json
@@ -91,7 +91,6 @@
"canceled": "本次 run 在产出结果前被取消,因此没有结果。",
"failed": "本次 run 在产出结果前失败,因此没有结果。"
},
- "sendNowGateUnavailable": "本次 send-now run 无法接入:Session turn gate 当前不可用。请等待服务启动完成后重试。",
"bindingUnresolvedRetry": "绑定的 Agent 会话 {session} 无法接收请求({attempt}/{threshold})。连续 {threshold} 次出现目标会话不可用后,该定义将自动暂停。请用以下命令重新绑定:vibe task update {id} --session-id <id>。",
"bindingUnresolvedPaused": "已暂停:绑定的 Agent 会话 {session} 无法接收请求,该定义继续运行只会反复失败。请用以下命令重新绑定:vibe task update {id} --session-id <id>;然后恢复:vibe task resume {id}。"
},