Repository navigation
fix: Give serve a default space for a login without one - #24
Merged
Merged
Conversation
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.
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
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.
What
In 1.3.0, a stored login with several spaces and no default made every
servetool call answerSETUP_REQUIRED. Only a fresh sign-in creatednotes.servenow resolves this on the first tool call. It lists the login's spaces and stores a default:notes, when it is among severalnotes, created, when the login reaches noneSeveral spaces without
notesstill answerSETUP_REQUIRED, now naming the spaces andslivingdoc space <name>.pull,commitandloginare unchanged.Tests
TestScenarioServeAdoptsADefaultSpacecovers all four cases end to end.TestSignInAdoptsADefaultSpaceadds a refused listing and a refused create.make lintis clean, andgo test ./...passes except the three chmod tests that also fail onmasterwhen run as root.architecture/login.mdis updated.Generated by Claude Code