Cline SDK v0.0.84Cline SDK v0.0.84
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy
- Cline SDK v0.0.84は、同一アカウントの機能フラグ同時照会を一つに集約し、beforeRunからコンテキストを追加可能にしました。
- 競合による誤判定を防ぎ、既存実装を維持したまま実行開始処理を拡張できます。
Cline SDK v0.0.84 shares concurrent flag lookups per account and lets beforeRun append context, preventing race-induced false defaults while preserving compatibility.
本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (github.com) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (github.com).
要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.
Cline SDK v0.0.84では、機能フラグ照会の競合処理が修正され、実行開始フックからコンテキストを追加できるようになった。同一アカウントでの同時照会を一つの通信にまとめつつ、既存実装との互換性を保った拡張となる。
同時照会の集約
同じアカウントに対して機能フラグの照会が並行して発生した場合、進行中の一つのリクエストを共有する。呼び出しごとに別々の照会として扱うのではなく、同一アカウント単位で処理を集約する形だ。
一方、アカウントを切り替えた場合は、切り替え前のアカウントに対するリクエストの完了を待たない。共有の対象を同一アカウントに限定し、別アカウントの処理を前の照会から分離している。
競合時の誤判定
従来は、ネットワークリクエストが完了する前にキャッシュが最新として扱われていた。このため、最初の照会と競合した呼び出しが既定値を即座に返し、実際には有効なフラグを無効と読む場合があった。その状態は、後続の更新が何らかのきっかけで実行されるまで続いていた。
v0.0.84では失敗も呼び出し側へ伝播する。これにより、失敗後の呼び出しは改めて照会を試せる。
beforeRunの拡張
実行開始時のフックは、コンテキストを注入できるようになった。beforeRunは新しいAgentRunStartResultを返し、従来のstopとreasonに加えてappendContextチャネルを持つ。
AgentStopControlは引き続き代入可能で、既存の実装者は変更せずにコンパイルできるとされる。ランタイムはフックから集めた内容を、source属性が「RunStart」の単一のhook_contextメッセージとして注入する。
Concurrent feature-flag polls
Cline SDK v0.0.84 changes how concurrent feature-flag polls and run-start hooks behave. The update matters because it prevents race-induced false default values while allowing beforeRun to add context without breaking existing implementors.
Concurrent feature-flag polls for the same account now share one in-flight request. Previously, the cache could be marked fresh before the associated network request had finished. If another caller raced the initial poll, it could return immediately with the default value rather than waiting for the result.
That race meant a flag that was enabled could temporarily be read as disabled. The incorrect value remained until another action triggered a later refresh. Sharing the in-flight request ensures concurrent lookups for the same account use the same pending operation instead of treating an unfinished request as a fresh cached result.
Failures now propagate
Request failures now propagate rather than leaving subsequent calls unable to recover through another attempt. As a result, a later call can retry after a failed feature-flag poll.
The account handling also separates requests more clearly. Switching accounts does not wait for the previous account’s request, while concurrent polls belonging to the same account continue to share their in-flight request.
Run-start hooks
Run-start hooks can now inject context through beforeRun. The method returns a new AgentRunStartResult that includes an appendContext channel alongside stop and reason.
AgentStopControl remains assignable to the new result type, so existing implementors compile unchanged. This preserves compatibility while extending the information that a run-start hook can provide.
The runtime collects the appended context and injects it as a single <hook_context source="RunStart"> message. This gives beforeRun a defined channel for contributing context at run start, while retaining the existing stop and reason controls.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPoko開発中、同じアカウントで機能フラグを同時確認したり、実行前に情報を足したりすると、何が変わるの?When developers check feature flags for the same account at once or add information before a run, what changes in their day-to-day work?
- TECHガイドTECH Guide同時確認は進行中の1リクエストを共有し、競合による誤判定を防ぐよ。beforeRunから実行コンテキストも追加できる。Concurrent checks now share one in-flight request, preventing race-related misreads. beforeRun can also append context for the run.
- ポコPoko前は、同時確認も実行前の情報追加もうまくできなかったの?Couldn’t it handle concurrent checks or add that pre-run context before?
- TECHガイドTECH Guide前は通信完了前にキャッシュが新鮮扱いされ、競合側が既定値を返して、有効なフラグを無効と読むことがあった。今回はbeforeRunにappendContextも加わったよ。Previously, the cache could look fresh before the request finished, so a racing caller returned the default and read an enabled flag as disabled. appendContext is now part of beforeRun.
- ポコPokoいちばん大きいのは、同時確認の取り違えを防ぎつつ、既存実装を変えずに実行前の文脈も足せることなんだね。So the biggest gain is avoiding mix-ups during concurrent checks while adding pre-run context without breaking existing implementations, right?
- TECHガイドTECH Guideうん。次は、失敗後に後続の呼び出しが再試行できる点と、アカウント切替時に前のリクエストを待たない点にも注目だね。Right. Also note that calls can retry after failures, and switching accounts no longer waits for the previous account’s request.