Skip to content

Windows: a Gajae Code pane can show its previous conversation after /new, /resume or a reused process id #270

Closed

Description

@devswha

What happens

#264 remembers which session file a Gajae Code pane on a Windows PC shows, for as long as the same gjc process runs under the pane's shell. Two cases keep an older conversation on screen for a while (read from server/gjc-runtime.ts in the review of #264, not reproduced):

  • After /new or /resume inside the same gjc process, the lens stays on the old session until an answer of the new one has its last 64+ letters or digits on the visible screen. A short answer or a long list never moves it.
  • herdr drops the pane's agent label when gjc exits, so nothing removes the remembered entry. A later gjc in the same pane that Windows gives the same process id gets the old session until its own answer is on screen.

Also: a process-table query that times out reads as "no gjc" and drops the remembered session until the next answer is on screen.

Expected

The chat lens of a Windows gjc pane follows the session that gjc is in.

Ideas

  • Compare the process creation time as well as the id (one more column in server/windows-processes.ts).
  • Treat an unreadable process table as "unknown", not as "gone".

Measured on a real PC (#264)

The first binding still needs a recent answer's tail on screen, and a bridge restart loses the bindings. With the binding, a poll costs about 10 ms, and one in about 5 s pays 0.7 to 0.8 s for the process table.

Activity

  1. added a commit that references this issue on Oct 2, 2026
    44f9066
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