Skip to content

Commit 7d959f6

Browse files
authored
Shell: minor ui fixes (#1390)
- Make agent message overflow-x to add scroll if it is too big. - Give the chat view focus back after a command (for the case where we have an inline browser action)
1 parent 0dd802a commit 7d959f6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ts/packages/shell/src/main/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ async function initializeDispatcher(
326326
"CommandProcessed",
327327
);
328328

329+
// Give the chat view the focus back after the command for the next command.
330+
shellWindow.chatView.webContents.focus();
331+
329332
// Update the summary after processing the command in case state changed.
330333
updateSummary(dispatcher);
331334
return commandResult;

ts/packages/shell/src/renderer/assets/styles.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ body {
310310
.chat-message-content {
311311
padding: 6px 15px 6px 15px;
312312
word-wrap: break-word;
313+
overflow-x: auto;
313314
}
314315

315316
.chat-message-kind-status {

0 commit comments

Comments
 (0)