fix: peek/status timeout on opencode sessions#100
Merged
Conversation
e2a31e7 to
360ea3d
Compare
360ea3d to
d4a1f57
Compare
Three root causes: 1. peek() read message parts for ALL assistant messages before slicing to last N — O(M*P) file reads for long sessions. Now filters first. 2. status() called getOpenCodePids() which runs ps aux + lsof per process — extremely slow. Now uses lightweight check via persisted metadata + recency heuristic. 3. Daemon session.peek defaulted to claude-code adapter when session wasn't tracked, never trying opencode. Now tries all adapters. Fixes #97 Co-Authored-By: Charlie Hulcher <charlie@kindo.ai>
d4a1f57 to
1391ff3
Compare
This was referenced Mar 6, 2026
c-h-
added a commit
that referenced
this pull request
Mar 6, 2026
New features: - feat: add --file flag to launch command (#95) Bug fixes: - fix: insert -- separator before positional prompt args (#106) - fix: peek/status timeout on opencode sessions (#100) - fix: use temp file for large prompts instead of CLI args (#101) Performance: - perf: use history.jsonl for Claude Code discover(), batch lsof calls (#96) Co-Authored-By: Charlie Hulcher <charlie@kindo.ai>
Merged
c-h-
added a commit
that referenced
this pull request
Mar 6, 2026
New features: - feat: add --file flag to launch command (#95) Bug fixes: - fix: insert -- separator before positional prompt args (#106) - fix: peek/status timeout on opencode sessions (#100) - fix: use temp file for large prompts instead of CLI args (#101) Performance: - perf: use history.jsonl for Claude Code discover(), batch lsof calls (#96) Co-authored-by: Doink (OpenClaw) <charlie+doink@kindo.ai>
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.
Summary
getOpenCodePids()which runsps aux+lsofper processsession.peeknow tries all adapters when session isn't tracked, instead of defaulting toclaude-codeFixes #97
Test plan
🤖 Generated with Claude Code