Skip to content

fix: headless login URL + friendly next/show with no attempt - #12

Open
tangentstorm wants to merge 1 commit into
mainfrom
fix/e2e-login-url-and-next-no-attempt
Open

tangentstorm wants to merge 1 commit into
mainfrom
fix/e2e-login-url-and-next-no-attempt

Conversation

@tangentstorm

Copy link
Copy Markdown
Collaborator

Summary

  • Bug 1: tanco login now always prints the OAuth URL (/auth/login?pre=...) so headless/remote users can open it manually; still tries webbrowser.open.
  • Bug 2: tanco next (and tanco show) no longer raise IndexError when there is no active attempt; print a friendly message to run tanco init first.
  • Also filled missing send/spawn docstrings so tanco help lists them cleanly.
  • Unit tests for login URL print and next/show no-attempt paths.

Branched from main (PR #11 still open with unrelated Firebase redirect fix).

Test plan

  • python -m unittest tests.test_basic -v
  • On a headless box: tanco login prints a usable URL
  • With no .tanco / no attempt: tanco next prints friendly message (no traceback)

Headless machines cannot open a browser, so always print the
/auth/login?pre=... URL from `tanco login`. Also stop IndexError
crashes from `tanco next`/`tanco show` when there is no active
attempt, and add unit tests for both paths.
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