<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
    <title>bigfish的网络博客 - 持久化</title>
    <subtitle>记录技术和生活</subtitle>
    <link rel="self" type="application/atom+xml" href="https://blog.bigfisharc.cn/tags/chi-jiu-hua/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://blog.bigfisharc.cn"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2026-10-31T10:00:00+08:00</updated>
    <id>https://blog.bigfisharc.cn/tags/chi-jiu-hua/atom.xml</id>
    <entry xml:lang="zh">
        <title>Session 已经持久化了，为什么还需要 Durable Execution？</title>
        <published>2026-10-31T10:00:00+08:00</published>
        <updated>2026-10-31T10:00:00+08:00</updated>
        
        <author>
          <name>bigfish</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://blog.bigfisharc.cn/blog/20261031-1000-sessionyi-jing-chi-jiu-hua-liao-wei-shen-me-huan-xu-yao-durableexecution/"/>
        <id>https://blog.bigfisharc.cn/blog/20261031-1000-sessionyi-jing-chi-jiu-hua-liao-wei-shen-me-huan-xu-yao-durableexecution/</id>
        
        <summary type="html">&lt;p&gt;假设你让 Agent 往 &lt;code&gt;CHANGELOG.md&lt;/code&gt; 追加一条记录。模型发出工具调用，工具改好了文件，进程却在保存工具结果之前退出了。&lt;/p&gt;
&lt;p&gt;重启以后，聊天历史还在，模型提出的工具调用也在，只是没有对应的结果。现在应该再执行一次吗？&lt;/p&gt;
&lt;p&gt;再执行，文件里可能多出一条重复记录。不执行，又不能直接告诉模型“已经成功”，因为会话记录没有这个证据。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Session 已经持久化，不代表这次执行已经具备可靠的恢复办法。&lt;/strong&gt; Durable Execution 要补上的，正是从“记录还在”到“知道怎样继续”这一段。&lt;/p&gt;</summary>
        
    </entry>
</feed>
