Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Store: list Memories and Harness Monitor under Essentials when installed before the move (#1171)

Deeaf9fa5926644
diff --git a/desktop/lib/core/harness_catalog.dart b/desktop/lib/core/harness_catalog.dart
index f9cf5a3b7..aa1999eca 100644
--- a/desktop/lib/core/harness_catalog.dart
+++ b/desktop/lib/core/harness_catalog.dart
@@ -18,7 +18,13 @@ const retiredHarnessIds = <String, String>{
String canonicalHarnessId(String id) => retiredHarnessIds[id] ?? id;
// Older daemons can report an old manifest's name even under the current id.
+// A copy installed before a package moved category still carries the old one.
const _currentIdentity = {
+ 'autonomous/memories': (name: 'Memories', category: 'Essentials'),
+ 'autonomous/harness-monitor': (
+ name: 'Harness Monitor',
+ category: 'Essentials',
+ ),
'autonomous/kicad': (name: 'KiCad', category: 'PCB'),
'autonomous/machine-monitor': (name: 'Machine Monitor', category: 'Compute'),
'autonomous/ollama': (name: 'Ollama', category: 'Local AI'),
diff --git a/desktop/test/harness_catalog_test.dart b/desktop/test/harness_catalog_test.dart
index 6bfceab32..17653027e 100644
--- a/desktop/test/harness_catalog_test.dart
+++ b/desktop/test/harness_catalog_test.dart
@@ -57,6 +57,26 @@ void main() {
},
);
+ test('a copy installed before the Essentials category is listed there', () {
+ final catalog = currentHarnessCatalog([
+ DshEntry(
+ id: 'autonomous/harness-monitor',
+ name: 'Harness Monitor',
+ engine: 'opencode',
+ category: 'Compute',
+ installed: true,
+ ),
+ DshEntry(
+ id: 'autonomous/memories',
+ name: 'Memories',
+ engine: 'opencode',
+ category: 'Code',
+ installed: true,
+ ),
+ ]);
+ expect(catalog.map((e) => e.category), everyElement('Essentials'));
+ });
+
test('published copy provides presentation; installed copy provides runtime facts', () {
final rows = [
const DshEntry(