Skip to content

fix: Give serve a default space for a login without one - #24

Merged
baalimago merged 1 commit into
masterfrom
fix/serve-default-space-lorentz
Oct 27, 2026
Merged

baalimago merged 1 commit into
masterfrom
fix/serve-default-space-lorentz

Conversation

@baalimago

Copy link
Copy Markdown
Owner

What

In 1.3.0, a stored login with several spaces and no default made every serve tool call answer SETUP_REQUIRED. Only a fresh sign-in created notes.

serve now resolves this on the first tool call. It lists the login's spaces and stores a default:

  • the only space, when there is one
  • notes, when it is among several
  • notes, created, when the login reaches none

Several spaces without notes still answer SETUP_REQUIRED, now naming the spaces and slivingdoc space <name>. pull, commit and login are unchanged.

Tests

  • New scenario TestScenarioServeAdoptsADefaultSpace covers all four cases end to end.
  • New unit test TestSignInAdoptsADefaultSpace adds a refused listing and a refused create.
  • make lint is clean, and go test ./... passes except the three chmod tests that also fail on master when run as root.
  • architecture/login.md is updated.

Generated by Claude Code

A stored login with several spaces and no default made every serve tool
call answer SETUP_REQUIRED, and only a fresh sign-in created notes. serve
now resolves it on the first tool call: it lists the login's spaces and
stores the only one, else notes when it is among several, else notes
created when the login reaches none. Several spaces without notes still
answer SETUP_REQUIRED, now naming them. The one-shot commands are
unchanged.
@baalimago
baalimago merged commit 0eafde2 into master Oct 27, 2026
3 checks passed
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.

1 participant