Repository navigation
OpenCode 세션을 DB에서 직접 읽어 제목, 질문 대기, 재우기와 fork를 보인다 - #878
Merged
Merged
Conversation
…leep, wake and fork OpenCode's reader proves the root session and its checkout from OpenCode's own row in one read transaction, keeps a witness of the last message so a rewound session is read again, and folds its question tool into the existing turn tracker, including the unfinished message a waiting question keeps open. Sleep, wake, fork and resume take OpenCode's -s <id> and -s <id> --fork once that proof holds, through the lifecycle gates Pi already uses.
… failures and question edges
…oversized part to find a question
…reading it as no sessions
…opencode # Conflicts: # docs/ARCHITECTURE.md # docs/UI_BEHAVIOR.md # docs/agent-hooks.md # docs/status-model.md # herdr-core/src/agent_sleep/dormant.rs # herdr-core/src/fork.rs # herdr-core/src/labels/worker.rs # herdr-core/src/live.rs # herdr-core/src/recent_closed.rs # herdr-core/src/runtime/agent_sleep/dormant.rs # herdr-core/src/runtime/projects.rs # herdr-core/src/runtime/session.rs # herdr-core/src/runtime/tests/agent_sleep.rs # herdr-core/src/sidebar.rs # herdr-core/src/worktree_control.rs # hide-agent-adapter/src/lib.rs # hide-host/src/serve.rs # hide-kit/src/tests/agent_cases.rs # hide-node-link/src/sessions.rs # hide-session/src/catalog.rs # hide-session/src/lib.rs # web/e2e/session-readers.spec.ts # web/src/agentAdapters.test.tsx
…opencode # Conflicts: # docs/ARCHITECTURE.md # docs/UI_BEHAVIOR.md # docs/agent-hooks.md # docs/factory.md # docs/status-model.md # herdr-core/src/agent_sleep/dormant.rs # herdr-core/src/fork.rs # herdr-core/src/live.rs # herdr-core/src/recent_closed.rs # herdr-core/src/runtime/memory.rs # hide-agent-adapter/src/lib.rs # hide-kit/src/tests/agent_cases.rs # hide-node-link/src/sessions.rs # hided/src/mobile/conversation.rs # web/e2e/session-readers.spec.ts # web/src/agentAdapters.test.tsx
…opencode # Conflicts: # docs/ARCHITECTURE.md
…opencode # Conflicts: # docs/ARCHITECTURE.md # docs/UI_BEHAVIOR.md # docs/agent-hooks.md # herdr-core/src/agent_sleep/dormant.rs # herdr-core/src/recent_closed.rs # herdr-core/src/runtime/tests/agent_sleep.rs # hide-agent-adapter/src/lib.rs # hide-node-link/src/sessions.rs # hide-session/src/catalog.rs # hide-session/src/lib.rs # hide-session/src/turns.rs # hided/Cargo.toml # web/e2e/session-reader-fixture.ts # web/e2e/session-readers.spec.ts # web/src/agentAdapters.test.tsx
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.
Related: PRD
agents/prd/session-readers-opencode/prd.md· 세션 리더 공통 #804, Pi #826, omp #865, Grok #868, Cursor #877 다음의 마지막 childSummary
parent_id없음)이고 기록된directory가 정확히 그 checkout임을 증명합니다.question도구 대기, 재우기/깨우기(opencode -s <id>), fork(-s <id> --fork)를 켭니다.opencode/<id>locator로 같은 증명을 거쳐 읽습니다.requires_native_proof(native-file reader 전부 + OpenCode) 하나로 모았고, 증명 참조는 OpenCode만 id, 나머지는 path입니다.Review
sessions.store_unreadable)에만 남깁니다(원칙 Move live and remote Herdr parsing to the typed boundary #13).{"agent","store_refused"})으로 옵니다. 옛 core는 refused row 하나로 셉니다. protocol bump 없이 택한 방식입니다.hide-agent-adapter/src/lib.rs- Herdr/core ownership.requires_native_proof가 Grok/Cursor/Pi/omp gate를 그대로 덮는지.hide-session/src/opencode.rs- failure path. 모든 SQL은 progress handler 작업 상한과 행 크기 가드 아래에서 돕니다.herdr-core/src/runtime/memory.rs- Memory 분석이 Memory reader 있는 agent만 읽도록 바뀌었습니다(OpenCode, Cursor 제외).Evidence
session-readers.spec.ts8/8. DB를 쓰는 OpenCode 대역으로 제목, child 제목 제외, question 대기/해제, 재우기,-s <id>깨우기, DB+WAL 무변경.-s <id>정확 재개,-s <id> --fork가 parent 없는 새 root, 실제 WAL DB 읽기.agent-live-check.py --agents opencode는 도구 sandbox에서 agent 시작이 timeout, 모든 장면 not_tested, verdict unknown.web/e2e/windows-sockets.unit.ts가 powershell 30 s ETIMEDOUT로 실패(이 PR과 무관, quarantine with-hide/hide-private#295), 실패 잡만 재실행.Verification record
agents/prd/session-readers-opencode/prd.md(sha256 25e35a2b30c918aa5a78c796d0be819bd0eb3de537f002e48a40fc220126b479)agents/runs/session-readers-opencode/verification-report.jsonandagents/runs/session-readers-opencode/verification-report.md; source fingerprint 76065e2461def954a490d75420ab1e8fde62f12c7ee7ba0e7ed65a0bdae735b2bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)sessions.store_unreadable), json_valid 앞 크기 가드, budget admission 테스트.{sessions, refusals}답.feat/session-readers-opencode, basemain