Skip to content

Test - #2

Open
jadestrong wants to merge 15 commits into
mainfrom
test
Open

Test#2
jadestrong wants to merge 15 commits into
mainfrom
test

Conversation

@jadestrong

Copy link
Copy Markdown
Owner

Thank you for contributing to agent-shell!

Checklist

  • I agree to communicate (PR description and comments) with the author myself (not AI-generated).
  • I've reviewed all code in PR myself and will vouch for its quality.
  • I've read and followed the Contributing guidelines.
  • I've filed a feature request/discussion for a new feature.
  • I've added tests where applicable.
  • I've updated documentation where necessary.
  • I've run M-x checkdoc and M-x byte-compile-file.

zhangyuqiang added 15 commits April 23, 2026 08:26
This commit renames the core ACP proxy implementation file and updates all internal references to use the simpler "acp" naming convention. The bundled implementation now provides the same interface as the original acp.el package while routing through the Rust proxy server.

Key changes:
- Renamed file header and provide statement
- Updated package version to remove "-proxy-core" suffix
- Renamed all internal variables and functions to use "acp--" prefix
- Added acp-open-log-file function for debugging
- Improved log file naming with timestamps
- Enhanced object normalization for better compatibility
Add comprehensive transcript functionality with automatic Git ignore support. Transcripts are now written by the ACP proxy to `.agent-shell/transcripts/` directory with improved formatting for tool calls, user prompts, and agent responses. Headers are automatically indented and tool call output is properly formatted with markdown code blocks.
Remove complex shared agent registry system in favor of using proxy
config files directly. This simplifies the codebase by eliminating
agent spec management and config file generation logic.

- Remove shared agent registry variables and functions
- Add acp-proxy-config-file customization option
- Simplify proxy startup to use explicit config files
- Remove agent registration and validation logic
- Add more detailed logging for requests and notifications
- Remove derived agent names and require explicit agent-name parameter
- Support dynamic agent creation via connectAgent request parameters
- Cache connected agents to avoid duplicate connections
- Fix indentation inconsistencies in defcustom and function definitions
- Add agent identifier resolution in agent-shell for proper naming
Implement client registration and session-aware message routing for the
shared proxy to handle multiple agent-shell buffers correctly. Add
debug logging for session routing diagnostics and ensure notifications
and requests are dispatched to the appropriate client based on session
ID matching.
Remove the unused :subscribed field from the agent state and replace it with a more precise check for whether event handlers are properly initialized on the ACP client.
Remove agent-shell-debug-session-routing custom variable and all associated debug logging calls for session routing diagnostics to simplify the codebase.
Remove the conditional logic that checked for acp-proxy-handles-transcripts
and always set the transcript file path directly.
Update package requirements to depend on external `acp` package instead of bundled `acp.el` core, aligning with agentclientprotocol.com spec.
Remove the session ID matching and buffer forwarding logic from the notification handler. This simplifies the notification processing by removing cross-buffer session management.
Refactor agent connection logic to support asynchronous operations:
- Add connection state tracking (disconnected/connecting/connected/failed)
- Implement connection waiter queue for concurrent requests
- Replace synchronous ensure-connected with async variant
- Normalize environment variables using symbols instead of strings
- Update request/notification senders to handle async connections
Replace manual `AgentClient`/`ClientDelegate` with the new
`agent-client-protocol` builder pattern (`AcpAgent`, `Responder`,
`ConnectionTo`). Removes `delegate.rs` and rewrites agent spawning,
notification handling, and permission responses to use the updated
schema types. Adds `acp/agentExtNotification` forwarding for
rate-limit and other extension notifications.
Introduce `acp/agentStderr` notification to stream filtered
stderr output from agents to clients. Only lines containing
"ERROR" or "WARN" are forwarded, with ANSI codes stripped.
Also adds RFC 3339 timestamps to file-based tracing output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant