Skip to content

v2/rails: delegate session from the CLI instance to the shell#30

Merged
bradgessler merged 1 commit into
mainfrom
v2-session-delegator
Jun 23, 2026
Merged

v2/rails: delegate session from the CLI instance to the shell#30
bradgessler merged 1 commit into
mainfrom
v2-session-delegator

Conversation

@bradgessler

Copy link
Copy Markdown
Contributor

current_user/login/whoami call session on the Thor instance; the v2 shell has it (the session shim) but the instance didn't delegate. Adds def session = shell.session to the v2 Thor Helpers (matching v1's def_delegators :shell, :session). Verified: v2-only ogplus whoami returns the graceful 'must log in' instead of crashing.

current_user/login/whoami call `session` on the Thor instance; the v2 shell has it
(the session shim), but the instance didn't delegate. Add `def session = shell.session`
to V2::Server::Thor::Helpers (matching v1's `def_delegators :shell, :session`), so
unchanged Thor session code works over v2. Verified: v2-only ogplus whoami now returns
the graceful 'must log in' instead of NameError.
@bradgessler bradgessler merged commit 43cd567 into main Jun 23, 2026
@bradgessler bradgessler deleted the v2-session-delegator branch June 23, 2026 01:14
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