The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): show legacy cronjobs in default bot
ScaleLeanChris799d3fe02188
diff --git a/apps/desktop/src/plugins/hermes-bots/plugin.js b/apps/desktop/src/plugins/hermes-bots/plugin.jsindex 256a609af07..75f58c1796a 100644--- a/apps/desktop/src/plugins/hermes-bots/plugin.js+++ b/apps/desktop/src/plugins/hermes-bots/plugin.js@@ -6008,7 +6008,7 @@ function selectRoutineJobs(data, error, lastJobs, bot) {return {live,all,- jobs: scopedToBot ? all : all.filter(job => routineBot(job) === bot)+ jobs: scopedToBot ? all : all.filter(job => (routineBot(job) || 'default') === bot)}}diff --git a/apps/desktop/src/plugins/hermes-bots/tests/routines-error.test.mjs b/apps/desktop/src/plugins/hermes-bots/tests/routines-error.test.mjsindex 3c1d1f9c30e..a83b2ac6821 100644--- a/apps/desktop/src/plugins/hermes-bots/tests/routines-error.test.mjs+++ b/apps/desktop/src/plugins/hermes-bots/tests/routines-error.test.mjs@@ -82,6 +82,14 @@ test('compatibility: a stale scope marker cannot leak another profile\'s jobs',)})+test('regression: untagged legacy cronjobs remain visible only on the default bot', () => {+ const legacy = { name: 'Existing reminder', job_id: 'legacy' }+ const api = load().__api++ assert.deepEqual(api.selectRoutineJobs({ jobs: [legacy] }, null, [], 'default').jobs, [legacy])+ assert.deepEqual(api.selectRoutineJobs({ jobs: [legacy] }, null, [], 'ops').jobs, [])+})+test('unit: a failed refresh keeps the last good list', () => {const view = load().__api.selectRoutineJobs(undefined, new Error('down'), jobs, 'ops')assert.equal(view.live, null)