-
Notifications
You must be signed in to change notification settings - Fork 2
Add instance command execution via interactive terminal #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+494
−13
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Hye-Dev <[email protected]>
- Implement openExecSocket method in Instance class for /1.0/instances/{name}/exec API
- Create InstanceExec component in ararat-ui-web submodule
- Extract shared terminal utilities to avoid duplication between console and exec
- Add command execution button and dialog to console page
- Support interactive terminal for command execution
Co-authored-by: Hye-Dev <[email protected]>
Co-authored-by: Hye-Dev <[email protected]>
Create automated workflow that: - Detects unpushed commits in submodules (ararat-ui-web, ui-web) - Pushes submodule changes to their respective repositories - Updates submodule references in main repository - Comments on PR with sync status This allows the CI/CD pipeline to automatically handle submodule updates. Co-authored-by: Hye-Dev <[email protected]>
Modified sync-submodules workflow to: - Create new branches in submodule repositories - Push changes to those branches - Automatically create PRs in submodule repos - Comment on main PR with links to submodule PRs - Provide clear next steps for merging This ensures submodule changes go through proper PR review process. Co-authored-by: Hye-Dev <[email protected]>
- Add quote-aware command parser to handle arguments with spaces - Improve error handling in GitHub Actions workflow - Don't fail workflow on push errors, report them instead - Add error reporting in PR comments Co-authored-by: Hye-Dev <[email protected]>
Copilot
AI
changed the title
[WIP] Add command execution button for instances
Add instance command execution via interactive terminal
Dec 3, 2025
🔄 Submodule Sync Statusℹ️ No submodule changes needed to be synced. |
1 similar comment
🔄 Submodule Sync Statusℹ️ No submodule changes needed to be synced. |
Member
|
@copilot on the new workflow run: Error: fatal: No url found for submodule path 'app/_components/ui' in .gitmodules not sure why that path is even being referenced |
Copilot stopped work on behalf of
Hye-Dev due to an error
December 3, 2025 21:35
Member
|
We need to have these issues scoped to ararat-ui-web |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements interactive command execution on Incus instances using the
/1.0/instances/{name}/execAPI endpoint withinteractive: true.Changes
Main Repository
app/(main)/_lib/instance.ts: AddedopenExecSocket()method calling exec API, returns WebSocket pair for data/control channelsapp/(main)/instance/console/page.tsx: Added "Execute Command" button, input dialog with quote-aware parser, and interactive terminal displaySubmodule (ararat-ui-web)
components/instance/exec.tsx: New component for command execution terminalcomponents/instance/terminalUtils.tsx: Extracted shared terminal logic (themes, socket attachment, resize handling)components/instance/textConsole.tsx: Refactored to use shared utilitiestypes/instance.d.ts: Extended interface withopenExecSocket(command: string[], options?)Automation
.github/workflows/sync-submodules.yml: Workflow detects submodule changes, creates PR branches, and opens PRs in submodule repositoriesUsage
The terminal utilities consolidate Xterm configuration, WebSocket attachment, and resize handling between console and exec components.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.