Repository navigation
fix(agent-routing): Herdr 0.9.5実機のnested snapshot・process-info応答へ対応し実機E2Eを成立させる - #201
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 9 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 23, 2026
…-pane shell settle
Owner
Author
|
Windows 11 ネイティブおよび Ubuntu (WSL2) での実機 E2E 検証で発覚した 3 件のクロス OS 欠陥を追加修正しました(commit
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
macOS 実機(
herdr 0.9.5/ protocol 22)での #132 / #134 運用受入実行時に発覚した、templates/agent-routing/と実機 Herdr API 応答スキーマの不整合を修正する。発覚した実機欠陥と修正内容
モック単体テスト(33/33 PASS)では隠れていた以下の 2 件の実機プロトコル不整合を修正した。
templates/agent-routing/layout.mts(normalizeSnapshot):herdr api snapshotは{ id, result: { type: "session_snapshot", snapshot: { workspaces, tabs, panes, agents, ... } } }を返すが、従来実装はresult.snapshotを unwrap せず 100%missing/invalid workspacesで失敗していた。result.snapshotを安全に unwrap しつつ、既存の flat モック形式互換とsnapshot: nullの fail-closed を両立した。templates/agent-routing/dispatch.mts(extractAgentInstance/agentInstance/ startup poll):herdr pane process-info --pane <pane>は{ result: { type: "pane_process_info", process_info: { foreground_process_group_id, foreground_processes, ... } } }を返すが、従来実装はresult.process_infoを unwrap していなかった。result.process_infoを unwrap し、agent.terminal_id+foreground_process_group_id(または先頭 process PID)を組み合わせて同一 pane 内でのエージェント差し替えを fencing できるようにした。agent omp openrouter-free)の検出余裕としてポーリング上限を 16→24 回(最大 18s)へ拡張した。layout.test.mts,dispatch.test.mts):herdr 0.9.5protocol-22 の nestedsession_snapshotおよびpane_process_info(同一 terminal での PGID 差し替え検出・process_info: nullfail-closed)を追加。検証結果
bun run typecheck && bun run quality:structure: PASS(findings: 0)node --test templates/agent-routing/*.test.mts: 35/35 PASSbun evals/policy-evaluation/controls.mts: PASSherdr 0.9.5+ dotfilesagentlauncher /omp openrouter-free):dispatch.mts start --role review --name rev1: workspace 生成・focus 非奪取・omp検出・rename・binding 確定 PASSrev1再起動:blocked: agent name already existsで fail-closed PASSrev2起動: 同一 workspace のWorktab へsplit-pane再利用 PASSread --role implementation:pane/role/provider binding mismatchで fail-closed PASSreadおよびprompt --wait: 実機omp openrouter-freeからagent_status: "done"応答取得 PASSherdr workspace listと focus が実行前と完全一致することを確認済みRefs #132
Refs #134