Skip to content

Allow automation deletion without SSH connection - #13261

Merged
AmethystLiang merged 2 commits into
mainfrom
allow-user-to-delete-automations-even-without-connecting-to-ssh
Aug 8, 2026
Merged

AmethystLiang merged 2 commits into
mainfrom
allow-user-to-delete-automations-even-without-connecting-to-ssh

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Problem

External automations on unavailable SSH hosts displayed as separate "source" entries that required SSH connection before users could manage automation jobs, blocking deletion and other operations when SSH wasn't available.

Solution

Remove the source availability layer and only display automation jobs. Users can now manage automations directly without first establishing an SSH connection. Empty host probes are omitted from the list.

Summary

Simplify external automation list to show only actual jobs, removing the blocking SSH requirement for basic operations like deletion.

Screenshots

No visual change.

Testing

  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm build
  • Added or updated high-quality tests that would catch regressions, or explained why tests were not needed

AI Review Report

TODO: Add AI review summary here, including cross-platform compatibility checks for macOS, Linux, and Windows.

Security Audit

TODO: Add security audit summary here.

Notes

TODO: Call out any platform-specific behavior, risks, or follow-up work.

Remove external source entries from the list and only show jobs.
This allows users to delete and manage automations even when the
remote host is not connected.
@coderabbitai

coderabbitai Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 009877e5-3389-43e6-b052-4e7296bcb10c

📥 Commits

Reviewing files that changed from the base of the PR and between 2e6eb42 and 141a80d.

📒 Files selected for processing (1)
  • src/renderer/src/components/automations/external-automation-list-entries.test.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/renderer/src/components/automations/external-automation-list-entries.test.ts

📝 Walkthrough

Walkthrough

External automation lists now contain job entries only. Empty managers and Hermes unavailable or error source entries are omitted. Search fingerprints use job fields and prompt text for all external entries. The automation page and detail pane no longer manage SSH source availability or connection actions. External selections render the manager view directly. Tests cover job-entry construction and external action availability.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the problem and solution, but required testing, AI review, security audit, and notes sections remain incomplete with unchecked items or TODOs. Complete the testing checklist and replace the AI Review Report, Security Audit, and Notes TODOs with specific findings and verification details.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main user-visible change: users can delete automations without an SSH connection.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/renderer/src/components/automations/external-automation-list-entries.test.ts (1)

25-60: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Test jobs from an unavailable manager.

The fixture sets status: 'available' and canManage: true. This does not test the required job-only flow for a disconnected SSH host. Keep the default unavailable manager and add a job to verify that its job remains listed.

Proposed test adjustment
         manager({
-          status: 'available',
-          error: null,
-          canManage: true,
           jobs: [

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: eb4e043c-fe50-408c-b566-1288d0993648

📥 Commits

Reviewing files that changed from the base of the PR and between 04f7123 and 2e6eb42.

📒 Files selected for processing (9)
  • src/renderer/src/components/automations/AutomationListExternalRows.tsx
  • src/renderer/src/components/automations/AutomationsDetailPane.tsx
  • src/renderer/src/components/automations/AutomationsPage.tsx
  • src/renderer/src/components/automations/external-automation-display.ts
  • src/renderer/src/components/automations/external-automation-list-entries.test.ts
  • src/renderer/src/components/automations/external-automation-list-entries.ts
  • src/renderer/src/components/automations/external-automation-source-availability.test.ts
  • src/renderer/src/components/automations/external-automation-source-availability.ts
  • src/renderer/src/components/automations/use-automation-list-search.ts
💤 Files with no reviewable changes (2)
  • src/renderer/src/components/automations/external-automation-display.ts
  • src/renderer/src/components/automations/external-automation-source-availability.ts

@AmethystLiang

Copy link
Copy Markdown
Contributor Author

@coderabbitai Fixing. Will be in the next commit

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

@AmethystLiang Acknowledged. I will review the update after you push the next commit.

You are interacting with an AI system.

Remove availability constraints (status, error, canManage) from test to
verify jobs can be listed regardless of manager connection state.
@AmethystLiang
AmethystLiang merged commit 8a061b9 into main Aug 8, 2026
45 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* Allow automation deletion without SSH connection

Remove external source entries from the list and only show jobs.
This allows users to delete and manage automations even when the
remote host is not connected.

* Update test: list jobs from unavailable automation manager

Remove availability constraints (status, error, canManage) from test to
verify jobs can be listed regardless of manager connection state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant