Pi: paused model calls are reported as "not signed in" when the model's provider comes from an extension

オープン 初心者向け
#288 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@balcsida がすでに取り組んでいます。

2026年11月20日 から。

  • #289 @balcsida による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
73/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

まず Pi セッション開始通知と Pi 関連の te doctor 出力を見つけ、次にそれらのメッセージを作成し、sidecall.py でサインイン検出を処理するコードを読みます。両方のメッセージに pi_extensions と pi_cli を記載するよう更新します。どちらのメッセージからでもユーザーがこれらの設定を見つけられれば、issue は完了です。報告者は PR を開く予定なので、着手前に関連する作業がないか確認してください。

索引モデルが issue の本文から書いたものです。

説明

On Pi, the plugin's model calls get paused as "not signed in" when Pi is signed in, but the model's provider comes from an extension:

TokenEconomizer: the plugin's own model calls go through `pi -p`, which answered that it is not signed in, so they are paused; facts that need no model call are still learned, and the loop guard redirects only at its backstop. `/te config set microskills=on` (or `loopguard=on`) tries again.

The calls run with --no-extensions, so the provider is not registered in them and Pi (1.5.2) answers:

No API key found for the selected model.

Use /login to log into a provider via OAuth or API key. See:
  <docs>/providers.md
  <docs>/models.md

/login matches _SIGNED_OUT_RE in sidecall.py, so the calls are paused, and both the session start notice and te doctor say that Pi is not signed in. config set microskills=on only pauses them again at the next call.

The settings from #96 fix it (pi_extensions, and pi_cli as well in my case, since the first pi on my PATH is a wrapper), but nothing in the notice or in te doctor points to them. errors.log did not help either: the 300 characters it keeps were the two docs paths and the session header from stdout, so the "No API key found" line was cut off.

I'd suggest naming pi_extensions and pi_cli in the Pi notice and in the doctor line. I'll open a PR for that.

A side note: Pi writes "for the selected model" only when it does not know the provider, otherwise it names it (No API key found for ${provider}.). So the two cases could be told apart if you prefer a more precise message.

Seen on main (1bfeccd) with Pi 1.5.2 on macOS.

主要言語
Python
スター
7.4k
フォーク
500
平均マージ
1日 9時間
マージ済み PR(30日)
124

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/TokenEconomizer のほかの issue

microsoft/TokenEconomizer の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。