-
Notifications
You must be signed in to change notification settings - Fork 69
Adds Terminal to Sandbox View #348
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
Open
matthewlouisbrockman
wants to merge
28
commits into
main
Choose a base branch
from
get-into-sandboxesidterminal-eng-4152
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
a21aeaf
Share dashboard panel frame
matthewlouisbrockman c954aee
Move xterm styles into terminal component
matthewlouisbrockman 171563e
Render terminal in dashboard panel frame
matthewlouisbrockman dc9d1e9
Use type-only terminal SDK imports
matthewlouisbrockman 7ec924d
Keep sandbox terminals out of stored sessions
matthewlouisbrockman ae2b295
Make terminal restart action caller-controlled
matthewlouisbrockman e104b6c
Retry timed-out sandbox terminal attaches
matthewlouisbrockman 0efbfb4
Debounce terminal autostart
matthewlouisbrockman 0672776
Reset terminal input queue on disconnect
matthewlouisbrockman b6af83c
Show missing terminal sandbox access copy
matthewlouisbrockman c4257da
Add terminal tab to sandbox details
matthewlouisbrockman 5fcd614
Add terminal tab route boundaries
matthewlouisbrockman 9195326
Extract terminal instance hook
matthewlouisbrockman e61ed34
Remove sandbox inspect frame shim
matthewlouisbrockman 2c9d146
Use dashboard panel frame directly
matthewlouisbrockman 56ae8bf
Keep shared frame named for sandbox inspect
matthewlouisbrockman 2b38566
Extract terminal attach retry helper
matthewlouisbrockman 19faacd
Allow zero-delay terminal attach retries
matthewlouisbrockman 2165839
Use bounded terminal attach backoff
matthewlouisbrockman 9d6b490
Pass terminal launch options as a target
matthewlouisbrockman 3c962d0
Resume paused sandbox inspect views for five minutes
matthewlouisbrockman 2777f17
Use sandbox context in terminal tab
matthewlouisbrockman d6f7003
Reset sandbox terminal resume after attach failure
matthewlouisbrockman 5ce2360
Kill terminal PTYs on teardown
matthewlouisbrockman 320df06
Batch terminal input writes
matthewlouisbrockman 3f4a7f7
Use terminal copy for terminal empty state
matthewlouisbrockman e1a2b96
Use sandbox context for terminal lifecycle
matthewlouisbrockman 8d9f1dd
Batch terminal input and split panel header
matthewlouisbrockman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/app/dashboard/[teamSlug]/sandboxes/[sandboxId]/terminal/error.tsx
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| 'use client' | ||
|
|
||
| import { DashboardRouteError } from '@/features/dashboard/shared/route-error' | ||
|
|
||
| export default function SandboxTerminalPageError({ | ||
| error, | ||
| reset, | ||
| }: { | ||
| error: Error & { digest?: string } | ||
| reset: () => void | ||
| }) { | ||
| return <DashboardRouteError error={error} reset={reset} /> | ||
| } |
1 change: 1 addition & 0 deletions
1
src/app/dashboard/[teamSlug]/sandboxes/[sandboxId]/terminal/loading.tsx
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export { default } from '@/features/dashboard/loading-layout' |
5 changes: 5 additions & 0 deletions
5
src/app/dashboard/[teamSlug]/sandboxes/[sandboxId]/terminal/page.tsx
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import SandboxTerminalView from '@/features/dashboard/sandbox/terminal/view' | ||
|
|
||
| export default function SandboxTerminalPage() { | ||
| return <SandboxTerminalView /> | ||
| } | ||
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.