You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "jsiu93 (via GitHub)" <gi...@apache.org> on 2026/08/30 12:06:20 UTC

[I] bug(cli): `/setup` leaves stale connection identities in the running TUI [maka]

jsiu93 opened a new issue, #4261:
URL: https://github.com/apache/maka/issues/4261

   ## What happened
   
   After creating and enabling a connection through `/setup`, selecting its model through `/model`, and sending the first message, the transcript shows:
   
   ```text
   Error: The original account was deleted. Run /model and choose a new account and model to continue.
   ```
   
   The request still succeeds and the assistant response follows the false error.
   
   ## How to reproduce
   
   1. Start with a fresh Maka profile.
   2. Launch the TUI from a workspace:
   
   ```sh
   cd "$WORKSPACE"
   maka
   ```
   
   3. Run `/setup`, create a connection, and enable one model.
   4. Run `/model` and select the new connection and model.
   5. Send `hello`.
   
   ## Expected
   
   The new connection is recognized immediately and the first message completes without an account-deleted error.
   
   ## Root cause
   
   `runtime-host-tui-context.ts` projects connection identities only at startup. After `/setup` saves, `pi-tui-runner.ts` refreshes `modelChoices` while retaining the startup `connectionIdentities`. When the Host reports the newly selected `llmConnectionId`, `adoptSessionMetadata()` cannot find it in the stale snapshot and emits the deleted-account notice.
   
   The onboarding save path already reads the refreshed connection catalog. Returning model choices and connection identities from that same catalog keeps the running TUI projections consistent.
   
   ## Environment
   
   - Maka commit: `1c52241`
   - OS: macOS 26.6.1
   - Surface: TUI / CLI
   - Node.js: 24.19.0
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [I] bug(cli): `/setup` leaves stale connection identities in the running TUI [maka]

Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han closed issue #4261: bug(cli): `/setup` leaves stale connection identities in the running TUI
URL: https://github.com/apache/maka/issues/4261


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org