Add PersistentShell fallback to avoid getting stuck at PersistentShell#1170
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThis change refactors server status command execution in ServerNotifier to use persistent shell with fallback. A new private flag controls whether persistent-shell execution is attempted; it defaults to true and resets when the SSH client instance changes. Two helper methods ( Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
lib/data/provider/server/single.dart (1)
529-532: 💤 Low valueMisleading log message when client is null.
The message "No status result from ${spi.name}" implies a failed status fetch, but at this point no attempt was made—the client is simply unavailable.
Suggested improvement
if (client == null) { - Loggers.app.warning('No status result from ${spi.name}'); + Loggers.app.warning('SSH client not available for ${spi.name}'); return ''; }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@lib/data/provider/server/single.dart` around lines 529 - 532, The warning message is misleading because no status fetch was attempted when client == null; update the Loggers.app.warning call (the null-check handling for variable client in this function) to clearly state that the client is unavailable (e.g., "No client available for ${spi.name}" or "Client for ${spi.name} is null, skipping status fetch") while preserving the existing return '' behavior; change only the log text invoked via Loggers.app.warning and keep the client null-check and return as-is.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@lib/data/provider/server/single.dart`:
- Around line 529-532: The warning message is misleading because no status fetch
was attempted when client == null; update the Loggers.app.warning call (the
null-check handling for variable client in this function) to clearly state that
the client is unavailable (e.g., "No client available for ${spi.name}" or
"Client for ${spi.name} is null, skipping status fetch") while preserving the
existing return '' behavior; change only the log text invoked via
Loggers.app.warning and keep the client null-check and return as-is.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 06432391-0208-4c74-b5a4-8ac5c5395afa
📒 Files selected for processing (1)
lib/data/provider/server/single.dart
Resolve #1142.
Summary by CodeRabbit