Skip to content

add default info to devbox list - #282

Merged
scott-cotton merged 3 commits into
mainfrom
devbox-list-current
Dec 15, 2025
Merged

scott-cotton merged 3 commits into
mainfrom
devbox-list-current

Conversation

@scott-cotton

Copy link
Copy Markdown
Member
25-12-09 scott@air cli % ./signadot devbox list
Warning: Could not fetch devbox ea31b532d67df8100759e977fa5b9ccd from ~/.signadot/.devbox-id: 404 Not Found: no such devbox "ea31b532d67df8100759e977fa5b9ccd"
ID   NAME   OS   MACHINE ID   STATUS   VALID UNTIL
25-12-09 scott@air cli %
25-12-09 scott@air cli %
25-12-09 scott@air cli % rm ~/.signadot/.devbox-id
25-12-09 scott@air cli % ./signadot devbox register
Successfully registered devbox (ID: ea31b532d67df8100759e977fa5b9ccd, name: air)
25-12-09 scott@air cli % ./signadot devbox register --name alt
Warning: devbox ID file already exists (ID: ea31b532d67df8100759e977fa5b9ccd). It will be overwritten.
Successfully registered devbox (ID: d1debd8cb700b57956b65433731b635e, name: alt)
Previous devbox ID (ea31b532d67df8100759e977fa5b9ccd) has been replaced.
25-12-09 scott@air cli % ./signadot devbox list
ID                                 NAME   OS       MACHINE ID     STATUS               VALID UNTIL
d1debd8cb700b57956b65433731b635e   alt    darwin   7dd1c1f22...   inactive (default)   -
ea31b532d67df8100759e977fa5b9ccd   air    darwin   7dd1c1f22...   inactive             -

@daniel-de-vera

Copy link
Copy Markdown
Contributor

@scott-cotton, overall LGTM, but what I'm not so sure is about the "default" concept (makes me think there a per org or per user default concept, which is not true). Why don't we call it "current" or "self" or something like that?

@scott-cotton

Copy link
Copy Markdown
Member Author

@scott-cotton, overall LGTM, but what I'm not so sure is about the "default" concept (makes me think there a per org or per user default concept, which is not true). Why don't we call it "current" or "self" or something like that?

Yeah it's hard to describe, but none of those terms make sense to me really. Let's see if @foxish or anyone can weigh in.

@scott-cotton

Copy link
Copy Markdown
Member Author

@scott-cotton, overall LGTM, but what I'm not so sure is about the "default" concept (makes me think there a per org or per user default concept, which is not true). Why don't we call it "current" or "self" or something like that?

Yeah it's hard to describe, but none of those terms make sense to me really. Let's see if @foxish or anyone can weigh in.

stored?

@scott-cotton

Copy link
Copy Markdown
Member Author

@scott-cotton, overall LGTM, but what I'm not so sure is about the "default" concept (makes me think there a per org or per user default concept, which is not true). Why don't we call it "current" or "self" or something like that?

Yeah it's hard to describe, but none of those terms make sense to me really. Let's see if @foxish or anyone can weigh in.

stored?

maybe the best thing here is just to not distinguish it from the others.

@daniel-de-vera

Copy link
Copy Markdown
Contributor

maybe the best thing here is just to not distinguish it from the others.

I think it's a good idea to show it, otherwise it's quite confusing/hacky to know what's your current devbox.
As I proposed above, I like something like "current" or "self", I didn't say anything else because I was waiting for Ani's opinion to discuss it (here or on slack).

@scott-cotton

Copy link
Copy Markdown
Member Author

As I proposed above, I like something like "current" or "self", I didn't say anything else because I was waiting for Ani's opinion to discuss it (here or on slack).

To me current conflicts with what is currently in use and self conflicts with the authenticated user.

@daniel-de-vera

daniel-de-vera commented Dec 9, 2025 •

Copy link
Copy Markdown
Contributor

To me current conflicts with what is currently in use

Currently in use, is the concept of active, doesn't it?

@scott-cotton

Copy link
Copy Markdown
Member Author

To me current conflicts with what is currently in use

Currently in use, is the concept of active, doesn't it?

yes, and that's why I don't like it. As a user that doesn't know the concepts I would be confused.

@foxish

foxish commented Dec 12, 2025

Copy link
Copy Markdown
Member

I find "default" to be confusing as Daniel said because it implies there's a special devbox that may or may not be this current one that we have considered default for that user which is not what we want to imply.

Re: terminology to refer to "this" devbox, one option comes to mind that should be quite idiomatic for CLI users:

  • Adding a (*) to that row and explaining what that means in the docs where we have more real estate.
  • Ensuring that it's the first option in the list.

@daniel-de-vera

Copy link
Copy Markdown
Contributor

Re: terminology to refer to "this" devbox, one option comes to mind that should be quite idiomatic for CLI users:

  • Adding a (*) to that row and explaining what that means in the docs where we have more real estate.
  • Ensuring that it's the first option in the list.

@scott-cotton, can we include this changes in the release?

@scott-cotton

Copy link
Copy Markdown
Member Author

Re: terminology to refer to "this" devbox, one option comes to mind that should be quite idiomatic for CLI users:

  • Adding a (*) to that row and explaining what that means in the docs where we have more real estate.
  • Ensuring that it's the first option in the list.

@scott-cotton, can we include this changes in the release?

I am ok with those options.

@daniel-de-vera daniel-de-vera 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.

LGTM

@scott-cotton
scott-cotton merged commit ddb908e into main Dec 15, 2025
@scott-cotton
scott-cotton deleted the devbox-list-current branch December 15, 2025 18:35
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.

3 participants