Repository navigation
[pull] main from can1357:main - #119
Merged
Merged
Conversation
…on to block cross-agent use - Adjusted visibleJobs to require exact ownerId match, allowing callers without an agent id to see only unowned jobs. - Simplified undeliveredJobs and runningAgentsOutsideJobs to always pass a filter object, improving consistency of owner scoping. - Unified cancel logic to use an ownerId filter, preventing cancellation of jobs owned by other agents. - Restricted cancelAgentRegistration to only cancel agents spawned by the caller, disallowing cross-agent kills and limiting unowned callers to parent-less agents. - Made AsyncJobFilter require an explicit ownerId field (nullable) rather than an optional property, clarifying the API contract. - 8000 Added test confirming that callers without an agent id are scoped to unowned jobs and cannot cancel owned jobs.
- Replaced one-way decompression pipes with pipelines so body cancellation destroys the IncomingMessage. - Added a regression test covering cancellation before the gzip trailer arrives. Fixes #13229
…e, and auto-close - Added `ida.maxOpen` setting to cap concurrent database workers and automatically evict the least recently used idle database. - Added `ida.idleCloseSec` setting to save and close idle databases after a configurable timeout. - Added dirty-state tracking with automated autosave 10s after request queues drain. - Updated request queueing to include timeout-bounded waiting for busy databases. - Ensured atomic database persistence via post-mutation IDB/Hex-Rays hooks.
… integration - Introduced `pi-vfs` crate providing a unified, asynchronous filesystem interface with host-native and virtual-provider support. - Integrated `pi-vfs` into shell core, replacing synchronous `std::fs` operations with async, cancellation-aware providers. - Migrated shell command execution and builtin utilities to use an injected `BlockingFs` for filesystem independence. - Replaced command-string URL expansion with a native `InternalUrlFilesystem`, enabling direct shell-level access to virtual protocols. - Added support for virtual working directories in the bash tool, enabling shell operations across non-native filesystem schemes. - Exposed `ShellFilesystem` bridge in native interface, allowing custom handler implementation for shell I/O requests.
…ompressed-cancellation'
… prompt description - Revised docs to describe `InternalUrlFilesystem` and clarify `skill://` URL behavior in Bash. - Updated Bash tool prompt to note that internal URIs act as paths for builtins, coreutils, redirects, and globs.
… daemons - Moved database workers into independent, project-shared daemon processes (`omp.ida.<id>`). - Integrated IDA daemon lifecycle with the project broker for improved resource management and cross-process sharing. - Added support for shared access to IDA databases across all omp processes in a project. - Enhanced `list` output to show database initialization and busy status for active workers. - Enabled automatic host cleanup via `omp ps` and broker idle-out, ensuring reliable database saves on exit. - Restricted concurrent access by enforcing file locking across all project processes.
… children - Added RuntimeChildrenOptions interface with a transient array to mark below-transcript roots billed at their smallest height. - Extended Composer.setRuntimeChildren to accept an optional options argument and store transient roots in a new #transientChrome set. - Implemented transient chrome floor tracking (#transientChromeFloor) so transient roots are billed at their minimum height, preventing permanent transcript rows from being retained. - Refactored rendering of below-transcript roots into a private #renderBelowRoot helper, improving code clarity. - Replaced previous retirementBelowFloor logic with calculations based on transient rows, adjusting the history offering behavior.
- Integrated `InternalUrlFilesystem` across all native tools (ast-grep, find, glob, grep, xargs) to resolve virtual `scheme://` paths in-place. - Removed temporary file materialization for virtual scopes, enabling direct native I/O on internal resources. - Added `cp` builtin and upgraded standard utilities (`find`, `ifne`, `xargs`) to support async shell-command execution via the internal filesystem. - Optimized prompt token counting by using provider-reported usage for anchored prefixes and restricting estimation to message deltas. - Standardized path resolution across tools using `resolveSearchRoot`, ensuring consistent support for host paths and virtual URLs.
…ved output limit recovery - Added support for `stops-output-at-context-window` compatibility flag, preventing unnecessary output token limit reduction on hosts (e.g., Claude 4.5+ API) that truncate rather than reject overflowing requests. - Enhanced `length` stop recovery to distinguish between output cap exhaustion and context window saturation, allowing truncated-but-actionable turns to be retained instead of discarded. - Updated compaction summary rewrite markers to preserve bound thinking during replayed tail sequences.
- Implement GNU-style `-f`/`--force` handling by removing destinations that fail to open during copy. - Align logic for destination removal, symlink replacement, and directory mode calculation with GNU `cp`. - Restructure `copy_file` to perform update/overwrite checks before modifications and improve verbose reporting. - Refactor path-stripping into a dedicated function for consistency across recursive and non-recursive operations.
- Builtin commands now return exit code 123 with shell diagnostic on failure instead of being treated as unavailable. - Length-stop recovery now resets its retry counter only on delivered turns (text, tool calls, or images) and treats reasoning-only truncations as non-delivered. - Final error message for length-stop recovery updated to note that no text or tool call was produced. - Compaction is skipped for non-delivered length stops when the context window still has capacity.
- ps -M printed "?" for %CPU on Linux threads spawned within the current clock tick: start_time/ticks equalled /proc/uptime, so age <= 0 mapped to None. Broke ps_builtin_lists_one_line_per_thread_with_m on the bazel CI run. - Zero elapsed time now yields 0.0 like procps, for Linux and Windows threads and the process-level %CPU/C columns alike.
- The settings-session smoke still called Settings.override(path, value), removed by the centralized settings registry cutover (6962d5c), so the install-methods job failed with "override is not a function". - The probe now overrides via cfgExtensions / cfgTaskAgentModelOverrides, imported through the bundled @oh-my-pi/pi-coding-agent subpath exports.
- beae3d7 removed the skill-conditional `skill://` line from the bash tool prompt, but two tests still required it in the bash description. - Deleted the frozen-hint toggle test: with no skill-dependent tool text left, its premise no longer exists and nothing in it can fail. - Kept the SDK system-prompt `skill://<name>` assertion from the inventory test; dropped its bash-description checks.
- The streaming-snapshot fixture advanced its producer on free-running setTimeout ticks. When the loop parks in yieldIfDue() (a >=20 ms sleep gated process-wide, frequent on loaded CI runners), the producer kept mutating the live partial, so update 4 observed block 2 early and the test flaked in the workspace-fast job. - The producer now advances one step per observed assistant event, keeping the contract (each snapshot sees only deltas delivered so far) without wall-clock timers. Verified: forcing yieldIfDue on every event fails the old fixture deterministically and passes the new one.
- The fixture set a runtime key for anthropic while the session model is openai, so AgentSession's registry key check fell back to ambient OPENAI_API_KEY / ~/.env and failed on credential-free CI runners. - The runtime key now follows the session model's provider.
- A shut-down broker kept watching detached daemons it left running; a late exit settled the stale record and persisted a completion into meta.json already owned by the next broker, resurrecting acked completions. - shutdown() now retires the record generation so existing guards drop late exit/readiness callbacks. - Added DaemonBrokerStartOptions.onListening; the ownership test connects clients only after the embedded broker listens, so early connects no longer spawn a competing broker that can steal the scope during restart.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )