feat(status-ui): improve concurrent session workflows
Add in-place session renewal, searchable model selection, clearer progress feedback, tool-result previews, and per-session presentation state. Keep commands, errors, loading, and lifecycle indicators attached to their owning runtime so parallel tabs cannot interfere.
This commit is contained in:
+345
-36
@@ -158,6 +158,18 @@ select:focus-visible {
|
||||
flex: 0 0 auto;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
.command-error {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
padding: 6px 8px;
|
||||
border: 1px solid #a65b67;
|
||||
border-radius: 5px;
|
||||
background: #3d252b;
|
||||
color: #ffd7db;
|
||||
font-size: 13px;
|
||||
}
|
||||
.workspace-layout {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
@@ -255,35 +267,46 @@ select:focus-visible {
|
||||
}
|
||||
.session-tabs {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
flex: 0 1 auto;
|
||||
display: flex;
|
||||
overflow-x: auto;
|
||||
gap: 2px;
|
||||
gap: 4px;
|
||||
padding-left: 4px;
|
||||
}
|
||||
.session-tab {
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 28px 28px;
|
||||
align-items: stretch;
|
||||
flex: 0 0 auto;
|
||||
overflow: hidden;
|
||||
border: 1px solid #555;
|
||||
border-bottom: 0;
|
||||
border-radius: 7px 7px 0 0;
|
||||
background: #303136;
|
||||
}
|
||||
.session-tab.selected {
|
||||
border-color: #d88735;
|
||||
background: #3b3935;
|
||||
box-shadow: inset 0 2px #f0a347;
|
||||
}
|
||||
.session-tab > button[role="tab"] {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
min-width: 124px;
|
||||
max-width: 190px;
|
||||
padding: 6px 8px 5px;
|
||||
border: 1px solid #555;
|
||||
border-bottom: 0;
|
||||
border-radius: 8px 8px 0 0;
|
||||
background: #303136;
|
||||
min-width: 112px;
|
||||
max-width: 176px;
|
||||
padding: 6px 9px 5px;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
color: #d5d7dc;
|
||||
text-align: left;
|
||||
}
|
||||
.session-tab > button[role="tab"]:hover {
|
||||
background: #383a40;
|
||||
}
|
||||
.session-tab.selected > button[role="tab"] {
|
||||
border-color: #d88735;
|
||||
background: #3b3935;
|
||||
color: #fff5e7;
|
||||
box-shadow: inset 0 2px #f0a347;
|
||||
}
|
||||
.session-tab > button span {
|
||||
overflow: hidden;
|
||||
@@ -299,16 +322,71 @@ select:focus-visible {
|
||||
.session-tab small.recovering {
|
||||
color: #ffc170;
|
||||
}
|
||||
.renew-session,
|
||||
.close-session {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 28px;
|
||||
min-width: 0;
|
||||
align-self: stretch;
|
||||
border: 1px solid #505257;
|
||||
border-bottom: 0;
|
||||
border-left: 0;
|
||||
border-radius: 0 8px 0 0;
|
||||
padding: 4px 8px;
|
||||
background: #303136;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
color: #b8bbc1;
|
||||
}
|
||||
.renew-session {
|
||||
color: #a9f2df;
|
||||
}
|
||||
.renew-session-icon {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 2;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
.tab-action-spinner {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border: 2px solid rgba(169, 242, 223, 0.35);
|
||||
border-top-color: #a9f2df;
|
||||
border-radius: 50%;
|
||||
animation: tab-action-spin 0.8s linear infinite;
|
||||
}
|
||||
.close-session {
|
||||
font-size: 16px;
|
||||
}
|
||||
.session-tab.selected .renew-session,
|
||||
.session-tab.selected .close-session {
|
||||
color: #fff5e7;
|
||||
}
|
||||
.renew-session:hover {
|
||||
background: #294139;
|
||||
color: #c8ffef;
|
||||
}
|
||||
.close-session:hover {
|
||||
background: #4a3131;
|
||||
color: #ffd7db;
|
||||
}
|
||||
.new-session-tab {
|
||||
align-self: stretch;
|
||||
flex: 0 0 32px;
|
||||
margin-left: 4px;
|
||||
padding: 0;
|
||||
border: 1px solid #d88735;
|
||||
border-bottom: 0;
|
||||
border-radius: 8px 8px 0 0;
|
||||
background: #4a3827;
|
||||
color: #ffc170;
|
||||
font-size: 18px;
|
||||
line-height: 1;
|
||||
}
|
||||
.new-session-tab:hover {
|
||||
background: #5a432d;
|
||||
color: #ffe0b6;
|
||||
}
|
||||
.unread-dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
@@ -321,7 +399,8 @@ select:focus-visible {
|
||||
.session-tab-actions {
|
||||
display: flex;
|
||||
gap: 3px;
|
||||
padding: 0 0 2px 5px;
|
||||
margin-left: auto;
|
||||
padding: 0 0 2px 8px;
|
||||
}
|
||||
.session-tab-actions button {
|
||||
white-space: nowrap;
|
||||
@@ -336,11 +415,6 @@ select:focus-visible {
|
||||
background: #4a4540;
|
||||
color: #ffc170;
|
||||
}
|
||||
.session-tab-actions .new-session {
|
||||
border-color: #d88735;
|
||||
background: #4a3827;
|
||||
color: #ffc170;
|
||||
}
|
||||
.session-tab-actions span {
|
||||
margin-right: 5px;
|
||||
font-size: 15px;
|
||||
@@ -356,18 +430,68 @@ select:focus-visible {
|
||||
padding: 7px;
|
||||
}
|
||||
.workflow {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-template-rows: minmax(0, 1fr) auto;
|
||||
gap: 7px;
|
||||
}
|
||||
.session-lock {
|
||||
position: absolute;
|
||||
z-index: 18;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 16px;
|
||||
background: rgba(20, 18, 16, 0.86);
|
||||
backdrop-filter: blur(3px);
|
||||
}
|
||||
.session-lock-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
width: min(420px, 92%);
|
||||
padding: 15px 17px;
|
||||
border: 1px solid #f0a347;
|
||||
border-radius: 8px;
|
||||
background: #33271d;
|
||||
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.48);
|
||||
color: #ffd9aa;
|
||||
}
|
||||
.session-lock-card > div {
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
}
|
||||
.session-lock-card strong {
|
||||
color: #fff2df;
|
||||
font-size: 14px;
|
||||
}
|
||||
.session-lock-card p {
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
}
|
||||
.session-lock-card small {
|
||||
color: #d8b892;
|
||||
}
|
||||
.session-lock-bars {
|
||||
flex: 0 0 auto;
|
||||
transform: scale(1.3);
|
||||
}
|
||||
.workflow-main {
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 190px;
|
||||
gap: 5px;
|
||||
}
|
||||
.transcript-container {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
.transcript {
|
||||
height: 100%;
|
||||
}
|
||||
.transcript,
|
||||
.todos-pane,
|
||||
.settings,
|
||||
@@ -385,6 +509,33 @@ select:focus-visible {
|
||||
inset 3px 0 #f0a347,
|
||||
0 0 16px rgba(240, 163, 71, 0.25);
|
||||
}
|
||||
.transcript:focus-visible {
|
||||
outline: 3px solid #f0a347;
|
||||
outline-offset: -3px;
|
||||
}
|
||||
.scroll-to-latest {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 12px;
|
||||
transform: translateX(-50%);
|
||||
z-index: 2;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
padding: 0;
|
||||
border: 1px solid #f0a347;
|
||||
border-radius: 50%;
|
||||
background: #3d2d1d;
|
||||
box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);
|
||||
color: #ffd39a;
|
||||
font-size: 20px;
|
||||
line-height: 1;
|
||||
}
|
||||
.scroll-to-latest:hover {
|
||||
background: #4b3420;
|
||||
color: #fff0da;
|
||||
}
|
||||
.agent-working {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -489,30 +640,62 @@ select:focus-visible {
|
||||
font-size: 13px;
|
||||
line-height: 1.32;
|
||||
}
|
||||
.tool-result summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
.tool-result-visible > strong,
|
||||
.tool-result-label {
|
||||
color: #a9f2df;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.tool-result summary {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 4px 8px;
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
}
|
||||
.tool-result summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
.tool-result summary::after {
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
content: "▾";
|
||||
color: #a9f2df;
|
||||
font-size: 14px;
|
||||
}
|
||||
.tool-result-preview {
|
||||
grid-column: 1 / -1;
|
||||
display: block;
|
||||
padding: 5px 6px;
|
||||
border-left: 2px solid #547d72;
|
||||
background: #222b29;
|
||||
color: #c9d8d4;
|
||||
font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
|
||||
font-size: 11px;
|
||||
font-weight: 400;
|
||||
line-height: 1.32;
|
||||
text-transform: none;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
.tool-result-hidden-hint {
|
||||
grid-column: 1 / -1;
|
||||
color: #91a69f;
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
text-transform: none;
|
||||
}
|
||||
.tool-result[open] summary::after {
|
||||
content: "▴";
|
||||
}
|
||||
.tool-result[open] summary {
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.tool-result[open] .tool-result-preview,
|
||||
.tool-result[open] .tool-result-hidden-hint {
|
||||
display: none;
|
||||
}
|
||||
.pending-message {
|
||||
border-style: dashed;
|
||||
}
|
||||
@@ -566,14 +749,16 @@ select:focus-visible {
|
||||
border-radius: 5px;
|
||||
background: #303030;
|
||||
}
|
||||
.pi-controls label {
|
||||
.pi-controls label,
|
||||
.model-control {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
font-size: 10px;
|
||||
}
|
||||
.pi-controls select {
|
||||
.pi-controls select,
|
||||
.model-trigger {
|
||||
min-width: 0;
|
||||
appearance: none;
|
||||
color-scheme: dark;
|
||||
@@ -585,11 +770,13 @@ select:focus-visible {
|
||||
no-repeat right 7px center;
|
||||
color: #f2ece4;
|
||||
}
|
||||
.pi-controls select:hover {
|
||||
.pi-controls select:hover,
|
||||
.model-trigger:hover {
|
||||
border-color: #d88735;
|
||||
background-color: #383129;
|
||||
}
|
||||
.pi-controls select:focus {
|
||||
.pi-controls select:focus,
|
||||
.model-trigger:focus {
|
||||
border-color: #f0a347;
|
||||
box-shadow: 0 0 0 2px rgba(240, 163, 71, 0.22);
|
||||
}
|
||||
@@ -601,6 +788,101 @@ select:focus-visible {
|
||||
background: #4b3420;
|
||||
color: #fff2df;
|
||||
}
|
||||
.model-selector {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
.model-trigger {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-align: left;
|
||||
font-weight: 650;
|
||||
}
|
||||
.model-trigger > span {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.model-menu {
|
||||
position: absolute;
|
||||
bottom: calc(100% + 6px);
|
||||
left: 0;
|
||||
z-index: 30;
|
||||
display: grid;
|
||||
width: min(400px, calc(100vw - 40px));
|
||||
max-height: min(420px, calc(100vh - 80px));
|
||||
gap: 6px;
|
||||
padding: 8px;
|
||||
border: 1px solid #70522f;
|
||||
border-radius: 7px;
|
||||
background: #292724;
|
||||
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
.model-menu input {
|
||||
width: 100%;
|
||||
padding: 7px 9px;
|
||||
border: 1px solid #5b5146;
|
||||
border-radius: 4px;
|
||||
background: #1f1e1c;
|
||||
color: #f2ece4;
|
||||
}
|
||||
.model-result-count {
|
||||
margin: 0;
|
||||
color: #aaa39a;
|
||||
font-size: 10px;
|
||||
}
|
||||
.model-results {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.model-provider-group {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
.model-provider-heading {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
padding: 4px 5px 3px;
|
||||
background: #292724;
|
||||
color: #f0a347;
|
||||
font-size: 10px;
|
||||
font-weight: 850;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.model-option {
|
||||
display: grid;
|
||||
gap: 1px;
|
||||
width: 100%;
|
||||
padding: 6px 7px;
|
||||
border: 1px solid transparent;
|
||||
background: #35322e;
|
||||
color: #f2ece4;
|
||||
text-align: left;
|
||||
}
|
||||
.model-option:hover {
|
||||
border-color: #8c6338;
|
||||
background: #44382d;
|
||||
}
|
||||
.model-option[aria-selected="true"] {
|
||||
border-color: #f0a347;
|
||||
background: #4b3420;
|
||||
color: #fff2df;
|
||||
}
|
||||
.model-option small {
|
||||
overflow-wrap: anywhere;
|
||||
color: #aaa39a;
|
||||
font-size: 9px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.model-empty {
|
||||
margin: 5px 0;
|
||||
text-align: center;
|
||||
}
|
||||
.composer-progress {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -654,6 +936,25 @@ select:focus-visible {
|
||||
display: flex;
|
||||
gap: 7px;
|
||||
}
|
||||
.restart-progress {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
width: fit-content;
|
||||
margin-top: 8px;
|
||||
padding: 7px 9px;
|
||||
border: 1px solid #b76f26;
|
||||
border-radius: 5px;
|
||||
background: #41301f;
|
||||
color: #ffd39a;
|
||||
}
|
||||
.restart-progress > span:last-child {
|
||||
display: grid;
|
||||
gap: 1px;
|
||||
}
|
||||
.restart-progress small {
|
||||
color: #d9b987;
|
||||
}
|
||||
.default-worktree-control {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
@@ -820,6 +1121,9 @@ select:focus-visible {
|
||||
min-width: 0;
|
||||
gap: 3px;
|
||||
}
|
||||
.session-row-content > strong {
|
||||
color: #f1f3f4;
|
||||
}
|
||||
.session-preview,
|
||||
.session-metadata {
|
||||
overflow: hidden;
|
||||
@@ -883,6 +1187,11 @@ select:focus-visible {
|
||||
.notification {
|
||||
padding: 6px;
|
||||
}
|
||||
@keyframes tab-action-spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
@keyframes work-pulse {
|
||||
70% {
|
||||
box-shadow: 0 0 0 7px rgba(240, 163, 71, 0);
|
||||
|
||||
Reference in New Issue
Block a user