don't automatically dispatch to a busy session

オープン
#63 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

  • #80 @simonpcouch による — マージされずにクローズ

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
r
領域
backend, tooling

調査の方向性

mcp_session() からデフォルトのディスパッチ動作をたどり始め、list_r_sessions() で使用されている responsive session のフィルタリングと比較します。完了条件は、該当する responsive session が存在しない場合はサーバーのフォールバックを維持しつつ、リクエストが番号の最も小さい responsive session を選択することです。busy と idle の両方の R セッションを検証してください。

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

説明

I just ran into a (simplified) situation where I had 2 R sessions running, both configured with mcp_session() via .Rprofile.

  • Session 1), the first one to be connected with mcp_session(), is running long-running code and has been / will be busy for hours
  • Session 2) is mostly idle

If I explicitly ask to list_r_sessions() and then select 2), the server runs fine. Otherwise, the request is automatically dispatched to 1), where it fails.

Notably, when I list_r_sessions(), 1) doesn't even show up—this makes sense to me and doesn't require any changes—but I think our default session should change from:

  • Before: The lowest-numbered session (or the server itself if there is none), to
  • After: The lowest-numbered session that is actually responsive, e.g. the smallest index that would appear in list_r_session() if called (or the server itself if there is none)
主要言語
R
スター
207
フォーク
24
平均マージ
36分
マージ済み PR(30日)
2

環境構築

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

はじめの一歩

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

posit-dev/mcptools のほかの issue

posit-dev/mcptools の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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