Skip to content

[trade-off] SceneOrchestrator 异常静默吞没 #29

Closed

Description

@ULookup

现状

prepare_scene 和 finish_scene 中的多个操作使用 catch (...) 静默吞没异常:

  • 角色卡加载失败 → 提示降级为"代理人: [id]"
  • 日记加载/写入失败 → 静默跳过
  • 关系更新失败 → 静默跳过
  • 语音指纹更新失败 → 静默跳过
  • 伏笔检测写入失败 → 静默跳过

当前取舍

这些操作是**最佳努力(best-effort)**辅助功能,不应阻断场景核心流程。场景文本写入和状态变更(核心操作)不使用 try-catch 包裹,失败会正常传播。

升级触发条件

添加结构化日志/警告通道,将这些异常记录到 stderr 或 session journal 中,让作者知晓降级发生但场景仍然安全完成。

Activity

  1. added
    trade-offIntentional design trade-off, deferred optimization
    on Jun 3, 2026
  2. self-assigned this
    on Jun 3, 2026
  3. added a commit that references this issue on Jun 21, 2026
    007ff4e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

trade-offIntentional design trade-off, deferred optimizationworldbuildingWorldbuilding novel agent feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions