Skip to content

Web: anchor relative service token paths to the calling directory - #3838

Merged
ashhart merged 2 commits into
ashhart:mainfrom
AIflow-Labs:codex/fix-3835-service-relative-path
Nov 19, 2026
Merged

ashhart merged 2 commits into
ashhart:mainfrom
AIflow-Labs:codex/fix-3835-service-relative-path

Conversation

@AIFlowML

Copy link
Copy Markdown
Contributor

What this changes

Anchor an explicit relative --token-file path to the service installer's current directory before creating the install plan. The file the installer prepares and the file the generated launcher opens now use the same path, even though the launcher starts in the home directory. The existing default path and symlink behavior are preserved.

  • Issue: Fixes Web service install resolves relative token paths from a different directory at startup #3835
  • Stacked on: main at 8cbef9777b9a05dfaff99d5aa9c2ce52fe2b00f8
  • atc overlap --json: ATC reported no local worktree conflicts and could not finish its PR scan. The paginated GitHub audit at 2026-11-18T15:30:14Z checked both paths, including rename origins, across 483 open PR heads and found zero overlaps. The head test-merges with main and the 45 open contributor heads.

Checks on this head

  • Head commit: 3bff83407913df7c69d741f782f00c31d7c7696c
  • Lean checker: 221 inherited findings on base and head, zero new. python3 tools/pr_check.py --base upstream/main reported zero errors and warnings.
  • Focused regression: pytest -q tests/test_service.py passed all eight tests. Both new platform cases fail on main because the saved path is still relative. They pass here with a path containing a space that refers to a symlink. The independent CLI check also loaded the inert fixture through both generated launch formats.
  • Web suites on M5 Max: Python 3.11 and 3.12 each passed 458 tests and skipped one standalone. Both reproduced the inherited version assertion from Web stand-in still reports 1.2.4 after native version bumps #3739 on main and on this head. In the local integration tree 7b7c5c203e0a5b65789febfd1bf657c4932fcd57, both passed 496 tests with one skip. ruff check . passed. The built wheel contains the UI and the exact changed service module.
  • Native host: The native source tree, build inputs, and Zig version match the exact head tested in Desktop: keep export actions tied to the current preview #3834. That run passed 7,491 tests, skipped 92, and reported zero unexpected golden differences. Its inherited macOS memcpy link guard is tracked by macOS native binary links internal memcpy after the device profile reader landed #3760 and fixed in Restore libSystem memcpy when reading device profiles #3761. zig fmt --check build.zig zig and git diff --check passed here.
  • CI: Pending at publication.
  • Not run: Installing or restarting a real service. The macOS plist and Linux unit are generated by the production planner and exercised against an inert fixture. Linux platform selection was simulated on macOS.

Receipt

N/A. This change affects Web service setup and does not reach inference.

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • The same regression fails on main and passes on this head.
  • Comments and docstrings are one line. No measurements or history in the source.
  • No private identity, internal host or local path is included in the diff or commits.

Igor Lessio - AIFLOW LABS

@ashhart

ashhart commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Hi @AIFlowML, thanks for the report.

The change is small and correct: an explicit relative --token-file path is made absolute against the caller's working directory before the plan is built, so the launcher opens the same file the installer prepared. The two platform cases fail on main and pass here, including the path with a space and the symlink. The default path and symlink behaviour are unchanged and no inference code is touched.

The red Python job is the Web version check (test_stand_in_reports_build_version_not_an_old_path_binary), which fails on every branch until #3745 lands; this change doesn't cause it. It lands after #3745. No changes needed from our side.

  • Synthena

@ashhart
ashhart force-pushed the codex/fix-3835-service-relative-path branch from 3bff834 to 630fd5d Compare November 19, 2026 10:24
@ashhart
ashhart merged commit 9c0c27e into ashhart:main Nov 19, 2026
2 of 15 checks passed
@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thank you @AIFlowML. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

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.

Web service install resolves relative token paths from a different directory at startup

2 participants