Skip to content

Automatically discover local T3 and manage credentials - #1

Merged
eimexdev merged 4 commits into
masterfrom
feat/automatic-local-setup
Sep 11, 2026
Merged

eimexdev merged 4 commits into
masterfrom
feat/automatic-local-setup

Conversation

@eimexdev

@eimexdev eimexdev commented Sep 11, 2026

Copy link
Copy Markdown
Owner

The first watch or list {threads:true} call now discovers an installed local T3 instance and creates a verified credential. Standard local installations only need the MCP launch entry; the three tools stay unchanged.

Managed credentials are replaced on use within one day of expiration, including from the detached worker. A SQLite lease coordinates simultaneous callers, replacement files are private and atomic, and failed issuance or verification preserves the previous token. Proactive renewal failures continue using a still-valid token with a five-minute retry delay. Explicit token files remain user-managed. Multiple discovered instances require a T3POLL_BASE_DIR or URL selection.

Validation: 28 tests pass, TypeScript check passes, and the packed artifact includes the setup module. An isolated copy of T3 0.0.41-nightly.20260910.1507 verified configuration-free MCP connection, initial issuance, worker renewal during delivery, and reuse from a fresh CLI process with a scripted provider.

Automatic discovery currently supports Linux and installed T3 Node CLI processes, including package-manager symlinks, with the userdata layout. Source runners and older dev layouts retain manual overrides. T3's issuance CLI grants administrative scopes; t3poll only uses orchestration read/operate. Previous successfully used credentials expire naturally; failed verification revokes the new session, with persistent cleanup retry if needed. Documentation covers setup, renewal, selection, and these boundaries.

The installed local build and live T3 server were not changed. No npm publication.

@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 5e69e9d2-1e6b-4711-ae63-f76ec7058453


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-11T20:31:04.281881Z 975391e New commits
🔒 Security Review Completed 2026-09-11T20:14:09.163967Z 8759aa7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8759aa7fb8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/setup.ts Outdated
Comment thread src/t3.ts
@eimexdev

Copy link
Copy Markdown
Owner Author

@codex review

Fixed both findings in the latest commit: resolve CLI symlinks relative to the server cwd before validation, and continue using a valid credential when proactive renewal fails, with a five-minute retry delay. Regression tests cover absolute/relative symlinks, fallback requests, expiration, and recovery. All 26 tests and TypeScript checks pass.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c3b8aaccc6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/setup.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a2b7cecdf3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/setup.ts
@eimexdev
eimexdev merged commit b27f6a3 into master Sep 11, 2026
3 checks passed
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