Files
alist/cmd
okatu-loliandClaude Opus 4.7 69464a2825 fix(mcp): initialize task manager so async fs operations don't panic
cmd/mcp.go (added in v3.60.0) calls Init() and LoadStorages() but skips
bootstrap.InitTaskManager(). As a result fs.CopyTaskManager,
fs.UploadTaskManager, fs.MoveTaskManager and friends are nil, and any
MCP fs_copy / fs_move on a cross-storage target panics at
internal/fs/copy.go (CopyTaskManager.Add) with a nil-pointer dereference
that the MCP handler surfaces as:

    panic recovered in fs_copy tool handler:
    runtime error: invalid memory address or nil pointer dereference

Mirror the cmd/server.go bootstrap order so the MCP command initializes
the task manager too.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
2026-05-29 09:37:25 +08:00
..
2023-03-05 15:07:06 +08:00
2025-01-18 23:28:12 +08:00
2022-12-18 19:53:39 +08:00
2022-12-18 19:53:39 +08:00