惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
Martin Fowler
Martin Fowler
B
Blog RSS Feed
D
DataBreaches.Net
L
LangChain Blog
月光博客
月光博客
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
V
Visual Studio Blog
美团技术团队
Jina AI
Jina AI
博客园 - 司徒正美
雷峰网
雷峰网
Last Week in AI
Last Week in AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
IT之家
IT之家
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
小众软件
小众软件
罗磊的独立博客
博客园_首页
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(cron): diagnose isolated pre-model stalls · openclaw/...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -418,6 +418,15 @@ export async function runEmbeddedPiAgent(

418418

const started = Date.now();

419419

const startupStages = createEmbeddedRunStageTracker();

420420

let startupStagesEmitted = false;

421+

const notifyExecutionPhase = (

422+

phase: Parameters<NonNullable<RunEmbeddedPiAgentParams["onExecutionPhase"]>>[0]["phase"],

423+

extra?: Omit<

424+

Parameters<NonNullable<RunEmbeddedPiAgentParams["onExecutionPhase"]>>[0],

425+

"phase"

426+

>,

427+

) => {

428+

params.onExecutionPhase?.({ phase, ...extra });

429+

};

421430

const emitStartupStageSummary = (phase: string) => {

422431

const summary = startupStages.snapshot();

423432

const shouldWarn = shouldWarnEmbeddedRunStageSummary(summary);

@@ -435,6 +444,7 @@ export async function runEmbeddedPiAgent(

435444

}

436445

};

437446

params.onExecutionStarted?.();

447+

notifyExecutionPhase("runner_entered");

438448

const workspaceResolution = resolveRunWorkspaceDir({

439449

workspaceDir: params.workspaceDir,

440450

sessionKey: params.sessionKey,

@@ -455,12 +465,14 @@ export async function runEmbeddedPiAgent(

455465

);

456466

}

457467

startupStages.mark("workspace");

468+

notifyExecutionPhase("workspace");

458469

ensureRuntimePluginsLoaded({

459470

config: params.config,

460471

workspaceDir: resolvedWorkspace,

461472

allowGatewaySubagentBinding: params.allowGatewaySubagentBinding,

462473

});

463474

startupStages.mark("runtime-plugins");

475+

notifyExecutionPhase("runtime_plugins");

464476465477

let provider = (params.provider ?? DEFAULT_PROVIDER).trim() || DEFAULT_PROVIDER;

466478

let modelId = (params.model ?? DEFAULT_MODEL).trim() || DEFAULT_MODEL;

@@ -586,6 +598,7 @@ export async function runEmbeddedPiAgent(

586598

const ctxInfo = resolvedRuntimeModel.ctxInfo;

587599

let effectiveModel = resolvedRuntimeModel.effectiveModel;

588600

startupStages.mark("model-resolution");

601+

notifyExecutionPhase("model_resolution", { provider, model: modelId });

589602590603

const authStore = pluginHarnessOwnsTransport

591604

? createEmptyAuthProfileStore()

@@ -796,6 +809,7 @@ export async function runEmbeddedPiAgent(

796809

lastProfileId = forwardedPluginHarnessProfileId;

797810

}

798811

startupStages.mark("auth");

812+

notifyExecutionPhase("auth", { provider, model: modelId });

799813

const runAttemptAuthProfileStore = pluginHarnessOwnsTransport

800814

? createScopedAuthProfileStore(attemptAuthProfileStore, lastProfileId)

801815

: attemptAuthProfileStore;

@@ -987,6 +1001,7 @@ export async function runEmbeddedPiAgent(

9871001

});

9881002

const contextEnginePluginId = resolveContextEngineOwnerPluginId(contextEngine);

9891003

startupStages.mark("context-engine");

1004+

notifyExecutionPhase("context_engine", { provider, model: modelId });

9901005

try {

9911006

const resolveActiveHookContext = () => ({

9921007

...hookCtx,

@@ -1155,6 +1170,7 @@ export async function runEmbeddedPiAgent(

11551170

});

11561171

if (!startupStagesEmitted) {

11571172

startupStages.mark("attempt-dispatch");

1173+

notifyExecutionPhase("attempt_dispatch", { provider, model: modelId });

11581174

emitStartupStageSummary("attempt-dispatch");

11591175

startupStagesEmitted = true;

11601176

}