Skip to content

Refactor: Decouple SharedTaskStateManager from vscode namespace (Sub-item of #38) #43

@cloga

Description

@cloga

As a prerequisite for the Async Event-Driven Swarm architecture (see #38), we need to decouple SharedTaskStateManager from the vscode.Memento dependency.

Currently, SharedTaskStateManager relies on VS Code's extension context, which breaks the standard of keeping the underlying MCP server as a pure Node.js daemon across different editors and CLI environments (like Claude Code).

Tasks to accomplish:

  1. Remove vscode namespace dependencies from src/managers/SharedTaskStateManager.ts.
  2. Replace vscode.Memento with a pure Node.js persistent state storage mechanism (e.g., a file-based JSON store in .optimus/state/ or lightweight local DB).
  3. Ensure backwards compatibility with current adapters.

🤖 Agent System Metadata:

  • Local Blackboard: .optimus/tasks/task_refactor_shared_task_state.md
  • Agent Session ID: GitHub-Copilot-Session

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions