Chat: pick a new chat's project, profile and gateway on its greeting #375
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 416 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.361
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #375"
general
weight: 0.35
Giton22
What
A new chat's greeting now says where it will run, and lets you change it before the first message:
session.createthen carries the project's folder ascwd.Once the first message is on its way, or for a stored chat or a bot's, the greeting offers no moves. A chat that has begun is never moved.
Why
You couldn't start a chat in a project without first opening the sidebar, filtering by the project and pressing New chat there. The greeting was empty space that could say where the chat goes.
Details
ChatSession.startIn/unstarted: a new chat that hasn't reached the gateway takes another folder in place.ChatViewModel.sameChatAskeeps the same chat (and its composer) when only the folder changed.How I tested it
-
ChatViewModelTest.pickingAProjectKeepsTheNewChatAndStartsItThere-
AppViewModelTest:aNewChatFromHomeInTheListForgetsTheLastProject,theFirstChatAtLaunchWaitsForTheLastProject,aChatSharedAtLaunchStartsInTheLastProject,aProjectPickedBeforeTheSettingsAreReadStaysAndKeepsThem,theLastProjectIsKeptPerProfile,pickingAProjectMovesOnlyAnUntouchedNewChat-
GreetingPlacesTestfor the labels- moved a typed new chat between projects and checked the text stayed;
- checked the new session landed in the picked project;
- switched profile and gateway from the greeting;
- turned Use last project on and off;
- checked the layout at 360 dp and in both themes.
Screenshots
| Before | After (dark) | After (360 dp, light) |
|---|---|---|
| <img width="240" alt="before" src="https://github.com/user-attachments/assets/bebf44bc-6439-455c-99ff-ef069b9f3f46"> | <img width="240" alt="after, dark" src="https://github.com/user-attachments/assets/39019cb3-a115-420b-a760-c431f1179d27"> | <img width="240" alt="after, 360 dp light" src="https://github.com/user-attachments/assets/fc46e6ea-bc27-45f6-9ca7-577d86607dd1"> |