Skip to content

[webchat] Multi-session support via URL param or tabs #4627

Description

@rafaelreis-r

Use case

  • Run parallel conversations without multiple browsers
  • Quick context switching between tasks
  • Test different prompts/models side-by-side

Current behavior

WebChat always connects to the agent's \main\ session. The only way to have parallel sessions is to use multiple browsers, incognito windows, or different channels.

Proposed solutions

Option A: URL parameter

Accept ?session=\ URL param to target a specific session:
\
http://localhost:5004/?session=work
http://localhost:5004/?session=personal
http://localhost:5004/?session=testing
\\

Option B: Slash commands

Add session management commands:
\
/session list # show available sessions
/session new # create and switch to new session
/session switch # switch to existing session
/session close # close current (return to main)
\\

Option C: UI tabs/sidebar

Add session tabs or a sidebar in the webchat UI for switching between active sessions.

Workarounds today

  • Multiple browser windows / incognito
  • Different channels (Telegram + webchat)
  • /new\ resets current session (not parallel)

Environment

  • Windows 11
  • Moltbot 2026.1.x
  • WebChat channel

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions