@adecore/agents-react 0.54.9 → 0.54.10

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.
@@ -628,9 +628,9 @@ export function deriveTimelineRows(items, options) {
628
628
  const finalAssistant = lastAssistantRow(work) ?? (cutShort ? work.findLast(row => row.kind === 'assistant') ?? null : null);
629
629
  const closing = finalAssistant ? work.indexOf(finalAssistant) : work.length;
630
630
  const before = work.slice(0, closing);
631
- // Images remain a turn's visible result, and a workflow or a background subagent may still be running after its turn ends.
631
+ // Images and subagents remain a turn's visible result, and a workflow may still be running after its turn ends.
632
632
  // A compaction is never folded away, so a turn that only compacted shows its divider and no fold.
633
- const standing = before.filter(row => isImageRow(row) || row.kind === 'compaction' || row.kind === 'workflow' && row.tool.state === 'running' || row.kind === 'subagent' && row.item.status === 'running');
633
+ const standing = before.filter(row => isImageRow(row) || row.kind === 'compaction' || row.kind === 'subagent' || row.kind === 'workflow' && row.tool.state === 'running');
634
634
  const folded = before.length - standing.length;
635
635
  // With the tool lines left out, a turn that only ran tools has nothing behind its fold to open.
636
636
  const expandable = shownRows(before, options).some(row => !standing.includes(row));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/agents-react",
3
- "version": "0.54.9",
3
+ "version": "0.54.10",
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.54.9",
76
- "@adecore/editor": "0.54.9",
77
- "@adecore/editor-react": "0.54.9",
78
- "@adecore/intelligent-ui": "0.54.9",
79
- "@adecore/merge": "0.54.9",
80
- "@adecore/utils": "0.54.9",
75
+ "@adecore/agent-contracts": "0.54.10",
76
+ "@adecore/editor": "0.54.10",
77
+ "@adecore/editor-react": "0.54.10",
78
+ "@adecore/intelligent-ui": "0.54.10",
79
+ "@adecore/merge": "0.54.10",
80
+ "@adecore/utils": "0.54.10",
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.54.9",
104
+ "@adecore/ui": "^0.54.10",
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.54.9",
111
+ "@adecore/ui": "0.54.10",
112
112
  "@types/bun": "^1.4.4",
113
113
  "@types/react": "^19.3.0",
114
114
  "@types/react-dom": "^19.3.0",
@@ -733,14 +733,10 @@ export function deriveTimelineRows(items: ChatItem[], options: TimelineOptions):
733
733
  const closing = finalAssistant ? work.indexOf(finalAssistant) : work.length;
734
734
  const before = work.slice(0, closing);
735
735
 
736
- // Images remain a turn's visible result, and a workflow or a background subagent may still be running after its turn ends.
736
+ // Images and subagents remain a turn's visible result, and a workflow may still be running after its turn ends.
737
737
  // A compaction is never folded away, so a turn that only compacted shows its divider and no fold.
738
738
  const standing = before.filter(
739
- (row) =>
740
- isImageRow(row) ||
741
- row.kind === 'compaction' ||
742
- (row.kind === 'workflow' && row.tool.state === 'running') ||
743
- (row.kind === 'subagent' && row.item.status === 'running')
739
+ (row) => isImageRow(row) || row.kind === 'compaction' || row.kind === 'subagent' || (row.kind === 'workflow' && row.tool.state === 'running')
744
740
  );
745
741
 
746
742
  const folded = before.length - standing.length;