Skip to content

A continued chat with --no-host labels its project as codeaf #2535

Closed

Description

@AbirAbbas

What happened

On 2026-11-09 on dev@b5b7dead1, the receiving chat's rendered frame says:

project: codeaf

The expected label for a chat arriving from proj-a is:

project: proj-a (copy from another machine)

Replication

Deterministic (no model).

GOFLAGS=-buildvcs=false go test -p=2 ./internal/tui3 \
  -run '^TestAnOwnedMovedChatNamesItsOriginalProjectInTheFrame$' \
  -count=1 -timeout=15m

This builds the real chat frame using the owned workspace and recorded origin returned by continuation. With the production fix removed, the frame assertion prints project: codeaf. The same wrong label was hand-checked by reopening a freshly continued chat with --no-host using a binary with only internal/tui3/host.go restored to its HEAD bytes; the fixed binary shows the original folder and copy suffix in all six Go relay trials.

Field (real models).

Pair two computers with sync storage enabled. In a project called proj-a on the first computer, run codeaf chat --no-host --one-model --model <configured-model>, exchange a message and /quit. Continue that chat on the second computer with the same flags. Read the project label below the input box. A keyless model stub can replace the configured provider.

Where

movedWord in internal/tui3/host.go, called by newApp and app.takeUp in internal/tui3/app.go. Continuation correctly marks its private working folder as owned, but the early owned check discarded its recorded origin before the frame could name it.

The fix

Use the recorded origin to label an owned moved copy. Ordinary owned chats without an origin retain their existing label.

Acceptance

  • e2e: a real rendered frame for an owned moved chat contains project: proj-a (copy from another machine).
  • e2e: an actual --no-host continuation shows the original folder with (copy from another machine) below its input.
  • Unit: existing moved, returned and ordinary owned project-label cases still pass.
  • The chat manual quotes the --no-host copy label, and the change entry's invalidates names the old footer behavior.

Activity

  1. added a commit that references this issue on Nov 9, 2026
    35d38c5
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions