Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/maple-agent/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/maple-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ the same selection state.
The preview includes `j/k`, `gg/G`, counts, `Enter`, `h/l`, `y`, `/`, `ga`,
`[a`/`]a`, `gi`, and `Ctrl-W h/j/k/l`. `Ctrl-W j` from the composer reaches its
button row, where `h/l` (or `j/k`) and `gg/G` move between the model, thinking,
integrations, web, image, and dictation controls and `Enter` presses one; a menu
integrations, web, attachment, and dictation controls and `Enter` presses one; a menu
opens on its current choice. `Space s n` starts a task and `Space ,`
opens Settings. The Settings page itself is navigable, including its shortcut
search and editable binding rows. Annotation motions are registered and report
Expand Down
12 changes: 11 additions & 1 deletion apps/maple-agent/app/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@

#[cfg_attr(not(feature = "desktop"), allow(unused_imports))]
pub use local::*;
pub(crate) mod attachments;
pub(crate) mod local;
pub(crate) mod paging;
#[cfg(any(feature = "desktop", test))]
pub use attachments::AttachmentUploadRequest;
pub use attachments::ImportAttachmentRequest;
#[cfg(feature = "desktop")]
pub use paging::*;
mod mcp;
Expand Down Expand Up @@ -558,6 +562,9 @@ async fn dispatch_special(
backend: &LocalBackend,
request: Request,
) -> Result<serde_json::Value, String> {
if attachments::handles(&request.method) {
return attachments::dispatch(backend, request).await;
}
if paging::is_paging(&request.method) {
return paging::dispatch(backend, request, maple_agent::store::PageTransport::Local).await;
}
Expand Down Expand Up @@ -670,7 +677,10 @@ pub(crate) async fn dispatch(
// validation must not prevent local history, configuration, or stop calls.
// The restore mutex still serializes credential validation/publication.
// Cancelling an OAuth wait must remain independent.
if request.method == "cancel_oauth" {
if matches!(
request.method.as_str(),
"cancel_oauth" | "import_attachment"
) {
return dispatch_inner(backend, request).await;
}
if matches!(
Expand Down
Loading
Loading