Support omp (oh-my-pi) sessions: history import and host detection
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
- #175 @talbananaz による — マージされずにクローズ
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
調査の方向性
Read trace/pi.py and plugin/hosts.py, then inspect the existing Pi host history and detection paths. The issue names omp's session directory and log differences, but host detection still needs a discriminator from omp's hook environment. A linked pull request is already open; completion would include importing converted sessions with source mtimes and tests for title-prefixed logs and ignored non-message entries.
索引モデルが issue の本文から書いたものです。
説明
Problem. Running under omp (it loads Claude Code plugins and sets CLAUDE_PLUGIN_ROOT), the plugin reports host claude and te history import finds nothing: ClaudeCode.history() only reads ~/.claude/projects, while omp keeps sessions in ~/.omp/agent/sessions/<cwd-folder>/<timestamp>_<id>.jsonl.
The omp log is Pi-style (tree of id/parentId entries, toolCall/toolResult, same usage fields), with two differences:
- the first line is
{"type":"title",...}, sopi_session_header(which only checks entry 0) returns{}; - extra entry types (
custom,custom_message,developer,credential_pin,model_change, ...) that must be ignored.
Proposal.
trace/pi.py: makepi_session_headerscan the first few entries fortype == "session"; havepi_session_to_claudewritetimestampandcwdon user lines (needed byclaude_log_head/ history import).plugin/hosts.py: addOmp(Pi)withkeeps_history = Trueand ahistory()that lists omp's session dir, converting each log withpi_session_to_claudeinto a cache understate_root()(keep the source mtime so the "recent"/"too_old" filters work). Register inHOSTS; addompto--host.- Host detection: pick
omprather thanclaudewhen running under omp (needs a discriminator from omp's hook env; I haven't confirmed which var). - Tests: fixture omp log starting with a
titleline; assert history lists it andpi_prompt_countignores non-message entries.
Verified locally with a minimal patch of 1 + a history() hook on ClaudeCode: te history import --dry-run went from nothing to "2 earlier session(s) would be read", and te status showed +2 from earlier history, 44 prompts. Happy to send a PR for 1, 2, 4 if the approach is acceptable; 3 needs maintainer input.
- 主要言語
- Python
- スター
- 5.6k
- フォーク
- 344
- 平均マージ
- 14時間 41分
- マージ済み PR(30日)
- 54
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/TokenEconomizer のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
microsoft/TokenEconomizer#193 ·
メンテナーはふだん 1 日以内に返信
-
pricing: Claude's 1-hour cache writes are priced at 1.25x, but billed at 2x対応中かも @anascherif が今日担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
microsoft/TokenEconomizer#191 ·
メンテナーはふだん 1 日以内に返信
-
trace: Claude Code's `<synthetic>` notices count as requests and can make a Claude session price on the fallback curve対応中かも @1AbdullahButt が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 20/100
microsoft/TokenEconomizer#189 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
microsoft/TokenEconomizer#186 ·
メンテナーはふだん 1 日以内に返信
-
plugin: the agent-output readers crash on a JSON line that is not an object対応中かも @rahul05ranjan が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
microsoft/TokenEconomizer#182 ·
メンテナーはふだん 1 日以内に返信
microsoft/TokenEconomizer の issue をすべて見る
似ている issue
-
area: providers/aws priority: p2 size: S type: bug type: testing
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
finos/open-resource-broker#851 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
sandialabs/atlas-ui-3#1196 ·
メンテナーはふだん 1 日以内に返信
-
enhancement triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ShaftHQ/SHAFT_ENGINE#7902 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: GraphML export writes invalid XML when a value contains a control character (e.g. form feed)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
topoteretes/cognee#6646 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
DOI-USGS/pywatershed#428 ·