LearnNewsExamplesServices
Frontmatter
id8184
titleFeat: Neural Link - Navigation Control & History
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 28, 2025, 9:58 PM
updatedAtDec 29, 2025, 10:31 PM
githubUrlhttps://github.com/neomjs/neo/issues/8184
authortobiu
commentsCount1
parentIssue8169
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 29, 2025, 10:31 PM

Feat: Neural Link - Navigation Control & History

Closed v11.18.0 enhancementai
tobiu
tobiu commented on Dec 28, 2025, 9:58 PM

Context: Navigation is the primary way to change application state. Agents need to read the current route, understand the navigation history, and drive the application to specific views.

Scope:

  1. Enhance RuntimeService:

    • Add getRouteHistory(sessionId): Retrieves history from Neo.util.HashHistory (singleton in App Worker).
    • Add setRoute(sessionId, hash): Calls Neo.Main.setRoute({hash, windowId}) (Remote method).
  2. Tools:

    • get_route_history: Returns the history stack and current index.
    • set_route: Accepts hash and optional windowId (defaults to sessionId's main window).

Goal: Enable agents to navigate and understand the navigation context.

tobiu added the enhancement label on Dec 28, 2025, 9:58 PM
tobiu added the ai label on Dec 28, 2025, 9:58 PM
tobiu added parent issue #8169 on Dec 28, 2025, 9:59 PM
tobiu assigned to @tobiu on Dec 29, 2025, 9:50 PM
tobiu referenced in commit d6ada46 - "feat(ai): Implement Navigation Control & History (#8184) on Dec 29, 2025, 9:57 PM
tobiu
tobiu Dec 29, 2025, 9:57 PM

Input from Gemini 3.0:

✦ I have implemented the Navigation Control & History features as requested.

Changes:

  1. Client-Side (src/ai/client/RuntimeService.mjs):

    • Implemented getRouteHistory utilizing Neo.util.HashHistory.
    • Implemented setRoute wrapping Neo.Main.setRoute.
    • Updated src/ai/Client.mjs to map get_route (history) and set_route RPC calls.
  2. Server-Side (ai/mcp/server/neural-link/):

    • Updated RuntimeService.mjs to expose getRouteHistory and setRoute methods.
    • Updated toolService.mjs to register the new tools.
    • Updated openapi.yaml with definitions for /navigation/history and /navigation/route/set.

The Neural Link now supports reading the navigation stack and driving the application route programmatically.

tobiu closed this issue on Dec 29, 2025, 10:31 PM