Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 2, 2026

Configures VS Code to prioritize terminal usage when opening minikube in GitHub Codespaces or browser-based dev containers, and adds a helpful welcome message for new users.

Changes:

VS Code Configuration (devcontainer.json):

  • Suppress startup welcome screen (workbench.startupEditor: "none")
  • Set bash as default terminal profile
  • Prevent automatic file opening in Codespaces (openFiles: [])

Terminal Enhancement (.bashrc.sh):

  • Added welcome message that displays on first terminal entry showing:
    • Clean welcome banner: "Welcome to minikube in GitHub Codespaces"
    • Quick start instructions: "minikube start"
    • List of useful aliases
  • Added reset-view alias that provides instructions to reset VS Code layout
  • Uses .devcontainer-welcome-shown flag file to show message only once per user

User Experience:

Users opening minikube in Codespaces will see:

  • A clean terminal-focused interface ready for immediate CLI interaction
  • A helpful welcome message with quick start guidance on first terminal entry
  • Easy access to layout reset instructions via the reset-view command

Example terminal output on first entry:

╔══════════════════════════════════════════════════════════════════════╗
║  Welcome to minikube in GitHub Codespaces                           ║
╚══════════════════════════════════════════════════════════════════════╝

To start minikube simply type:

    minikube start

Useful aliases:
  m          - minikube
  k          - kubectl
  reset-view - Show how to reset VS Code layout
Original prompt

This section details on the original issue you should resolve

<issue_title>minikube in browser: make it terminal full screen</issue_title>
<issue_description>the config for codespaces is here, which opens a vscode editor in browswer (using cloud)

for end users it would be nice to have it terminal full screen, that would probably mean somewhere in .devcontainer/devcontainer.json we need to add a config for vscode to look like that
https://github.com/kubernetes/minikube/blob/master/.devcontainer/devcontainer.json

</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 2, 2026
@k8s-ci-robot
Copy link
Contributor

Hi @Copilot. Thanks for your PR.

I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Copilot
Once this PR has been reviewed and has the lgtm label, please ask for approval from medyagh. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 2, 2026
Copilot AI changed the title [WIP] Update devcontainer for terminal full screen in browser Configure devcontainer for terminal-focused experience in Codespaces Jan 2, 2026
Copilot AI requested a review from medyagh January 2, 2026 21:00
@medyagh
Copy link
Member

medyagh commented Jan 2, 2026

@copilot can you also add an alias or a command that if user wants to to reset the IDE view?

and also on the First Enter to the terminal it should display a welcome message
"Welcome to minikube in browser offered by codespaces

to start minikube simply type

"minikube start"

"

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 2, 2026
Copy link
Contributor Author

Copilot AI commented Jan 2, 2026

@copilot can you also add an alias or a command that if user wants to to reset the IDE view?

and also on the First Enter to the terminal it should display a welcome message
...

Done! Added both features in commit e11f58e:

  1. reset-view alias - Provides instructions to reset VS Code layout using the command palette
  2. Welcome message - Displays on first terminal entry with:
    • Welcome banner
    • Quick start instructions (minikube start)
    • List of useful aliases

Example output when opening a new terminal:

╔══════════════════════════════════════════════════════════════════════╗
║  Welcome to minikube in browser offered by Codespaces               ║
╚══════════════════════════════════════════════════════════════════════╝

To start minikube simply type:

    minikube start

Useful aliases:
  m          - minikube
  k          - kubectl
  reset-view - Show how to reset VS Code layout

$ reset-view
To reset VS Code layout:
  1. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
  2. Type: View: Reset View Locations
  3. Press Enter

The welcome message only shows once per user (cached in ~/.minikube-welcome-shown).

Copilot AI changed the title Configure devcontainer for terminal-focused experience in Codespaces Configure devcontainer for terminal-focused experience with welcome message in Codespaces Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

minikube in browser: make it terminal full screen

4 participants