Fix send file feature and implement LocalAPI with fallback to CLI (Fixes #56, fixes #38) - #74
Open
Celger wants to merge 4 commits into
Open
Fix send file feature and implement LocalAPI with fallback to CLI (Fixes #56, fixes #38)#74Celger wants to merge 4 commits into
Celger wants to merge 4 commits into
Conversation
Added info about translation
PabloB94
added a commit
to PabloB94/tailscale-status
that referenced
this pull request
Sep 1, 2026
Tres correcciones de fondo: - OperatorUser es POR PERFIL, no global: LocalBackend.OperatorUserName() lee CurrentPrefs().OperatorUser() y un perfil nuevo arranca con prefs por defecto. Configurarlo solo en el primero deja la máquina sin permiso para volver tras conmutar. `tailscale login` acepta --operator y --nickname (verificado en el --help local), así que el segundo perfil nace ya con el operador puesto. - `tailscale switch` sale 0 aunque no reconecte: con la node key caducada imprime "Logged out." y devuelve 0. cmdTailscale() solo mira get_successful() (extension.js:542) y descarta el stdout (541), así que la UI mentiría. Hay que parsear stdout. - Trampas de LocalAPI para los PRs maxgallup#70/maxgallup#74: la barra final es obligatoria y ServeHTTP rechaza con 403 cualquier peticion con Origin o Referer. Verificado con curl: Host correcto 200, Host: localhost 403, con Origin 403, con Referer 403. Añade tambien por que estar en wheel no sirve en Fedora: isLocalAdmin solo conoce grupos de macOS y QNAP, y Tailscale no instala reglas de polkit. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y3xo4mFsJYPkJCpdqZ4FXk
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.
Description
This PR introduces an architectural refactor to the extension, shifting from CLI-based subprocess execution to Tailscale's native LocalAPI via Unix sockets. It also includes i18n support and bug fixes.
The goal is to implement the feature in the TODO list, provide real-time updates for Taildrop events without relying on polling loops, fix the send file bug reported in issue #56, and the wrong permission of issue #38.
Since I'm not familiar with this programming language, I used Gemini to help me generate the code. At the end, I reviewed the code and the comments. I added comments at the beginning of the code increments to make it easier for other developers to verify.
Also, updated the README.md (TODO list and i18n comments).
Fixes #56, fixes #38.
Key Changes
1. Architecture Refactor: LocalAPI & Fallback System
2. Real-time Taildrop Notifications
3. Internationalization (i18n)
4. Bug Fixes
Testing
Tested locally on Debian 13 running GNOME 48 and Ubuntu 25.04 running Gnome 48.