Repository navigation
Conversation
Every teamspace is owned by an org now, and the control plane no longer lists user-owned copies of personal-org teamspaces (gridai/grid#49036), so a lookup by a user owner can only fail. Teamspace resolves its owner as an org only. user=, a slug whose owner isn't an org, LIGHTNING_USERNAME without an org, and a saved teamspace_owner_type of "user" now raise an error that says to use '<org>/<teamspace>'. User.teamspaces and User.create_teamspace raise the same way, and UserApi.create_teamspace is gone. The LLM default teamspace comes from the user's personal org, and an 'owner/teamspace' passed to LLM resolves the owner as an org. Teamspace completion and `lightning teamspace list` no longer list the username as an owner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Stop looking up teamspaces by a user owner. Every teamspace is owned by an org now, so these lookups now fail with an error that says to use
<org>/<teamspace>.Summary
Teamspaceresolves its owner as an org only. These now raise aValueErrorpointing to<org>/<teamspace>:user=(already deprecated)owner/nameslug whose owner isn't an org you're a member of, which used to fall back to a userteamspace_owner_type: userconfig, with a hint to runlightning config set teamspace <org>/<teamspace>LIGHTNING_USERNAMEwith no org set is no longer used to pick the owner, so you get the "No organization specified" error instead.User.teamspacesandUser.create_teamspaceraise the same error.UserApi.create_teamspacehas no callers left and is removed.--userflag all passuser=through toTeamspace, so they raise the same error. Their signatures are unchanged.llm.py:owner/teamspaceis resolved as an org only. It used to try a user first.models.pyno longer buildsuser/teamspacepaths, and saved config always records an org owner.lightning teamspace listno longer list the username as an owner, so completion stops suggesting an emptylit://<username>/.--userflag, andteamspaces.rstrecommendsTeamspace("org/name").Why
gridai/grid#49036 stopped
ListMembershipsfrom returning user-owned copies of personal-org teamspaces. Without them, every lookup by a user owner finds nothing and fails with a "does not exist" error that doesn't say what's wrong. Rather than map users to their personal org in the SDK, this drops user owners and says what to use instead.Testing
org-abc/ts-abc. Tests of the removed behaviour now assert the new errors:user=LIGHTNING_USERNAMEwithout an orgUser.teamspacesandUser.create_teamspace<user>/<teamspace>not found inmodels.pytest_get_auth_info_defaults_to_personal_org_teamspacechecks that the LLM default comes from the personal org.Teamspace("oliver/general")andTeamspace("general", user="oliver")both raise the new error naming<org>/<teamspace>. Not verified against staging: resolving an org-owned teamspace end to end, and the LLM default.🤖 Generated with Claude Code
— Claude Opus 5.5, on direct instruction; text not reviewed