@agent-link/server 0.1.52 → 0.1.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app.js +1 -1
- package/web/modules/connection.js +8 -2
- package/web/style.css +20 -1
package/package.json
CHANGED
package/web/app.js
CHANGED
|
@@ -505,7 +505,7 @@ const App = {
|
|
|
505
505
|
</div>
|
|
506
506
|
|
|
507
507
|
<!-- System message -->
|
|
508
|
-
<div v-else-if="msg.role === 'system'" :class="['system-msg', { 'compact-msg': msg.isCompactStart, 'command-output-msg': msg.isCommandOutput }]">
|
|
508
|
+
<div v-else-if="msg.role === 'system'" :class="['system-msg', { 'compact-msg': msg.isCompactStart, 'command-output-msg': msg.isCommandOutput, 'error-msg': msg.isError }]">
|
|
509
509
|
<template v-if="msg.isCompactStart && !msg.compactDone">
|
|
510
510
|
<span class="compact-inline-spinner"></span>
|
|
511
511
|
</template>
|
|
@@ -173,8 +173,14 @@ export function createConnection(deps) {
|
|
|
173
173
|
}
|
|
174
174
|
sidebar.requestSessionList();
|
|
175
175
|
} else if (msg.type === 'error') {
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
streaming.flushReveal();
|
|
177
|
+
finalizeStreamingMsg(scheduleHighlight);
|
|
178
|
+
messages.value.push({
|
|
179
|
+
id: streaming.nextId(), role: 'system',
|
|
180
|
+
content: msg.message, isError: true,
|
|
181
|
+
timestamp: new Date(),
|
|
182
|
+
});
|
|
183
|
+
scrollToBottom();
|
|
178
184
|
isProcessing.value = false;
|
|
179
185
|
isCompacting.value = false;
|
|
180
186
|
} else if (msg.type === 'claude_output') {
|
package/web/style.css
CHANGED
|
@@ -693,6 +693,7 @@ body {
|
|
|
693
693
|
.tool-line-wrapper {
|
|
694
694
|
max-width: 100%;
|
|
695
695
|
padding-left: 0.25rem;
|
|
696
|
+
overflow: hidden;
|
|
696
697
|
}
|
|
697
698
|
|
|
698
699
|
.tool-line {
|
|
@@ -706,6 +707,8 @@ body {
|
|
|
706
707
|
user-select: none;
|
|
707
708
|
transition: background 0.15s;
|
|
708
709
|
color: var(--text-secondary);
|
|
710
|
+
min-width: 0;
|
|
711
|
+
overflow: hidden;
|
|
709
712
|
}
|
|
710
713
|
|
|
711
714
|
.tool-line:hover {
|
|
@@ -723,7 +726,10 @@ body {
|
|
|
723
726
|
.tool-name {
|
|
724
727
|
font-weight: 500;
|
|
725
728
|
color: var(--text-secondary);
|
|
726
|
-
|
|
729
|
+
overflow: hidden;
|
|
730
|
+
text-overflow: ellipsis;
|
|
731
|
+
white-space: nowrap;
|
|
732
|
+
min-width: 0;
|
|
727
733
|
}
|
|
728
734
|
|
|
729
735
|
.tool-summary {
|
|
@@ -1197,6 +1203,19 @@ body {
|
|
|
1197
1203
|
padding: 0.5rem 0;
|
|
1198
1204
|
}
|
|
1199
1205
|
|
|
1206
|
+
.system-msg.error-msg {
|
|
1207
|
+
text-align: left;
|
|
1208
|
+
font-style: normal;
|
|
1209
|
+
color: #ef4444;
|
|
1210
|
+
background: rgba(239, 68, 68, 0.08);
|
|
1211
|
+
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
1212
|
+
border-radius: 8px;
|
|
1213
|
+
padding: 0.75rem 1rem;
|
|
1214
|
+
font-size: 0.85rem;
|
|
1215
|
+
word-break: break-word;
|
|
1216
|
+
overflow-wrap: break-word;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1200
1219
|
/* ── History loading indicator ── */
|
|
1201
1220
|
.history-loading {
|
|
1202
1221
|
display: flex;
|