Skip to content

Commit bb24e84

Browse files
committed
chore(019): 轨迹注释如实化/标题候选 LIMIT/暂停边界文档(观察 1/3/6 子项)
1 parent b9571cc commit bb24e84

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎app/src-tauri/src/ai_refine_task.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,9 @@ pub(crate) fn refine_slices_concurrent(ctx: RefineCtx<'_>) -> (Vec<String>, usiz
598598
.unwrap_or_else(|e| e.into_inner())
599599
.push(AiTurn {
600600
turn: idx + 1,
601+
// 观察 2026-09-05-3(如实化):system=策略基座;流式
602+
// NDJSON 后缀/预算引导段为运行期动态段不入轨迹,
603+
// 取证以 response 全文为准
601604
system: adapter.prompt.build_system(profile, Some(dims)),
602605
user: turn_user_text(req, vision_images),
603606
response: serde_json::to_string(&r).unwrap_or_default(),

‎app/src-tauri/src/db_sessions.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl Db {
139139
self.with_conn(|conn| {
140140
let mut stmt = conn.prepare(
141141
"SELECT title FROM sessions WHERE status <> ?1 AND started_at >= ?2
142-
ORDER BY started_at DESC, id DESC",
142+
ORDER BY started_at DESC, id DESC LIMIT 200",
143143
)?;
144144
let rows = stmt.query_map(params![SESSION_STATUS_FAILED, since], |row| {
145145
row.get::<_, String>(0)

‎app/src-tauri/src/media_state.rs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
//!
1212
//! @ai-context: 判定粒度=屏幕采样拍(1s);音频槽只记"最后有声时刻"。标称
1313
//! 停检 ~2 拍、恢复 ≤~1.5s,阈值与滞回一次真机 A/B 标定(验收项)。
14+
//!
15+
//! @ai-context 边界如实化(观察 2026-09-05-1):会话暂停(含自动暂停)期间
16+
//! audio_loopback 端点 Stop——声音槽停止写入,暂停态恢复判定实际
17+
//! 以**画面通道**为主(恢复播放必然带来画面变化);纯音频语境下
18+
//! 恢复延迟=声音端点重启后的下一媒体拍。暂停期低占空采样写槽为
19+
//! 后续候选,不做当前承诺。
1420
1521
/// 疑似暂停所需连续"无声且无画面动"拍数(采样拍≈1s;审查 F4:1 拍过锐,
1622
/// 静音+静止的真实讲解停顿 2-4s 即误停——标定前置为 2,总确认 ~3-4s)。

0 commit comments

Comments
 (0)