Skip to content

multi-attach R1 / L1: local aforge chat dials the workspace host when one is up or the journal is locked #63

Closed

Description

@santoshkumarradha

Part of #52 (R1). Plan: https://github.com/Agent-Field/aforge-v2/blob/dev/docs/design/multi-attach/PLAN.md (also posted on #52).

Scope

  • aforge chat / aforge resume try the workspace's session host FIRST when a host is already up for the workspace or the requested journal is locked: enginehost.Attach(workspace, spawn "engine --daemon --workspace …") gives a net.Conn; open the surface through the same road openChatV3Host uses, with a local dialer (remote.Roam over the socket) instead of an ssh child. Otherwise the in-process door runs exactly as today.
  • --no-host on chat/resume: force in-process (same meaning as on aforge engine).
  • Silent new conversation on lock is dead: openV3Agent (cmd/aforge/chatv3.go ~976) no longer starts a new session on session.ErrSessionLocked. Because the host attach is tried first, that branch is only reached for a lock held by a non-host process (an older build); refuse with a sentence that names aforge engine --stop.
  • Seam agreed with L2: tui3.Options.Link non-nil with Host == "" means linked, local. No via segment on the status line.
  • Tests in cmd/aforge and internal/enginehost; manual page for the new door and --no-host.

Acceptance: two local terminals, same workspace, one live chat — the second attaches as a watcher (dim typing from another window now · enter takes it back), enter takes the keyboard, the first becomes the watcher; no code path starts a new conversation because a journal is locked.


Drafted with CodeAF · reviewed and owned by the author

Activity

  1. added
    feature
    area:chat
    on Aug 31, 2026
  2. santoshkumarradha commented on Aug 31, 2026

    @santoshkumarradha
    MemberAuthor

    Closed: the owner's need is continue in another terminal, not two live windows. Re-homed as #71 (hand-off design). #52 stays open for the simultaneous-attach story (R2 #66).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:chatfeature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions