@adecore/agents-react 0.63.0 → 0.63.2
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.
|
@@ -13,7 +13,7 @@ import { useChatPreferences } from '../preferences.js';
|
|
|
13
13
|
import { readingWidthStyle } from '../reading-width.js';
|
|
14
14
|
import { INITIAL_CONVERSATION, SubagentConversation } from '../subagent-conversation.js';
|
|
15
15
|
import { useSubagentSupport } from '../subagent-support.js';
|
|
16
|
-
import { openBelow, useSubagentTrail } from '../subagent-view.js';
|
|
16
|
+
import { openBelow, useSubagentItem, useSubagentTrail } from '../subagent-view.js';
|
|
17
17
|
import { firstRowInView, restoreAnchor, wantsEarlier } from '../timeline-scroll.js';
|
|
18
18
|
import { CoveredBottomContext } from './covered-bottom.js';
|
|
19
19
|
import { FileLinkContext } from './file-links.js';
|
|
@@ -129,6 +129,8 @@ export function SubagentTimeline(t0) {
|
|
|
129
129
|
}
|
|
130
130
|
useEffect(t5, t6);
|
|
131
131
|
const hideTools = useHostHidesToolCalls(scope.id, chatId);
|
|
132
|
+
const item = useSubagentItem(chatId, toolUseId);
|
|
133
|
+
const stale = state.status === "ready" && !state.live && item?.status === "running";
|
|
132
134
|
const rows = deriveTimelineRows(state.items, {
|
|
133
135
|
expandedGroups: groups.ids,
|
|
134
136
|
expandedTurns: NO_TURNS,
|
|
@@ -333,6 +335,9 @@ export function SubagentTimeline(t0) {
|
|
|
333
335
|
}), state.live && /*#__PURE__*/_jsx("div", {
|
|
334
336
|
className: "chat-live-text pt-1 text-xs",
|
|
335
337
|
children: t("subagents.working")
|
|
338
|
+
}), stale && /*#__PURE__*/_jsx("div", {
|
|
339
|
+
className: "pt-1 text-xs text-text-faint",
|
|
340
|
+
children: t("subagents.stale")
|
|
336
341
|
})]
|
|
337
342
|
}), /*#__PURE__*/_jsx(TimelineMenuPopup, {
|
|
338
343
|
target: target,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/agents-react",
|
|
3
|
-
"version": "0.63.
|
|
3
|
+
"version": "0.63.2",
|
|
4
4
|
"description": "React agent chat threads, composers, approvals, provider accounts and usage views.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
"test:visuals": "bun --config=integration.bunfig.toml --conditions=source test ./src/chat/visual-viewport.integration.test.ts"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@adecore/agent-contracts": "0.63.
|
|
76
|
-
"@adecore/editor": "0.63.
|
|
77
|
-
"@adecore/editor-react": "0.63.
|
|
78
|
-
"@adecore/intelligent-ui": "0.63.
|
|
79
|
-
"@adecore/merge": "0.63.
|
|
80
|
-
"@adecore/utils": "0.63.
|
|
75
|
+
"@adecore/agent-contracts": "0.63.2",
|
|
76
|
+
"@adecore/editor": "0.63.2",
|
|
77
|
+
"@adecore/editor-react": "0.63.2",
|
|
78
|
+
"@adecore/intelligent-ui": "0.63.2",
|
|
79
|
+
"@adecore/merge": "0.63.2",
|
|
80
|
+
"@adecore/utils": "0.63.2",
|
|
81
81
|
"@codemirror/commands": "^6.11.1",
|
|
82
82
|
"@codemirror/language": "^6.13.1",
|
|
83
83
|
"@codemirror/state": "^6.7.6",
|
|
@@ -101,14 +101,14 @@
|
|
|
101
101
|
"zustand": "^5.0.16"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
|
-
"@adecore/ui": "^0.63.
|
|
104
|
+
"@adecore/ui": "^0.63.2",
|
|
105
105
|
"i18next": "^26.4.2",
|
|
106
106
|
"react": "^19.3.0",
|
|
107
107
|
"react-dom": "^19.3.0",
|
|
108
108
|
"react-i18next": "^17.0.15"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@adecore/ui": "0.63.
|
|
111
|
+
"@adecore/ui": "0.63.2",
|
|
112
112
|
"@types/bun": "^1.4.4",
|
|
113
113
|
"@types/react": "^19.3.0",
|
|
114
114
|
"@types/react-dom": "^19.3.0",
|
|
@@ -12,7 +12,7 @@ import { useChatPreferences } from '../preferences';
|
|
|
12
12
|
import { readingWidthStyle } from '../reading-width';
|
|
13
13
|
import { INITIAL_CONVERSATION, SubagentConversation, type SubagentConversationState } from '../subagent-conversation';
|
|
14
14
|
import { useSubagentSupport } from '../subagent-support';
|
|
15
|
-
import { openBelow, useSubagentTrail, type SubagentStep } from '../subagent-view';
|
|
15
|
+
import { openBelow, useSubagentItem, useSubagentTrail, type SubagentStep } from '../subagent-view';
|
|
16
16
|
import { firstRowInView, restoreAnchor, wantsEarlier, type ReadingAnchor } from '../timeline-scroll';
|
|
17
17
|
import { CoveredBottomContext } from './covered-bottom';
|
|
18
18
|
import { FileLinkContext } from './file-links';
|
|
@@ -84,6 +84,9 @@ export function SubagentTimeline({
|
|
|
84
84
|
}, [state.unsupported, scope]);
|
|
85
85
|
|
|
86
86
|
const hideTools = useHostHidesToolCalls(scope.id, chatId);
|
|
87
|
+
const item = useSubagentItem(chatId, toolUseId);
|
|
88
|
+
// The row still says it runs, but the machine found no process that has it any more.
|
|
89
|
+
const stale = state.status === 'ready' && !state.live && item?.status === 'running';
|
|
87
90
|
|
|
88
91
|
const rows = deriveTimelineRows(state.items, {
|
|
89
92
|
expandedGroups: groups.ids,
|
|
@@ -207,6 +210,7 @@ export function SubagentTimeline({
|
|
|
207
210
|
);
|
|
208
211
|
})}
|
|
209
212
|
{state.live && <div className="chat-live-text pt-1 text-xs">{t('subagents.working')}</div>}
|
|
213
|
+
{stale && <div className="pt-1 text-xs text-text-faint">{t('subagents.stale')}</div>}
|
|
210
214
|
</ContextMenu.Trigger>
|
|
211
215
|
<TimelineMenuPopup target={target} thread={threadRef} />
|
|
212
216
|
</ContextMenu.Root>
|