# case: watch-times-out-with-no-activity ### 用例意义 验证在超时时间内没有匹配活动时,`watch` 返回稳定超时契约。 ### 前置条件 - 没有新匹配事件会发生 ### 输入 ```bash inbox --db TMPDIR/coord.db --json watch --agent worker-d --status pending --timeout-seconds 1 ``` ### 预期输出 - 退出码为 `10` - JSON 错误码为 `no_matching_work` ### 断言结论 - `watch` 超时被归类为“无匹配工作”,而不是内部错误 - `--timeout-seconds 0` 表示无限等待,而不是立即超时 - 未传 `--after-event` 时,`watch` 默认从“当前时刻之后”开始等待,不会回放既有事件