ai-actions v2.0.0: ノートメニュー起点に再設計 - #46
Merged
Merged
Conversation
返信の下書きは開いて投稿する時点で返信リンクが外れ、通常のノートとして飛んで いた (notedeck#1073)。そのため宛先だけでも届くよう、生成した返信本文の先頭に `@user@host` を機械的に足していた。本文が汚れるうえ、返信スレッドは繋がらない ままの暫定措置だった。 本体が下書きの返信・引用の文脈を復元するようになったので、メンションの前置を やめて AI の出力をそのまま下書きに入れる。復元された本体でしか正しく動かない ため meta.json に minNoteDeckVersion を入れた。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThe PR updates AI Actions reply-draft creation to preserve reply context through ChangesAI Actions reply drafts
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant AI as ai-actions plugin
participant DraftStore as Draft store
participant NoteDeck
AI->>DraftStore: Save generated response with replyId and visibility
AI->>NoteDeck: Show standard draft-saved notification
NoteDeck->>DraftStore: Open saved draft
DraftStore-->>NoteDeck: Restore reply context
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ai-actionsを v1 (クリップボード経由・コマンドパレット起動) から v2 に作り直し、公開する。v2 の入出力
v1 は「コマンドパレットで実行 → クリップボードを読む → 結果をクリップボードに書き戻す」で、何が入力になったのか・結果がどこに出たのかが画面上に一切見えなかった。v2 は起点も出力もすべて可視な UI 面に置く。
自動実行は持たず、AI 呼び出しは常に「ユーザーのクリック 1 回 = 課金 1 回」。空・ダイレクト・長文・CW の各ガードはすべて
ai.chatより前に置いている。返信案の暫定措置を外した (notedeck#1073)
下書きは開いて投稿する時点で返信リンクが外れ、通常のノートとして飛んでいた。そのため宛先だけでも届くよう、生成した返信本文の先頭に
@user@hostを機械的に足していた。本文が汚れるうえ返信スレッドは繋がらないままの暫定措置だった。本体が下書きの返信・引用・チャンネルの文脈を復元するようになったので、メンションの前置をやめて AI の出力をそのまま下書きに入れる。
注意: 復元は NoteDeck 1.52.0 以降。それ未満の本体では返信リンクが外れ、暫定措置も無いため宛先が本文にも残らない。
meta.jsonにminNoteDeckVersionを入れてあるが、このフィールドは現状ストア側・本体側とも読んでいないためインストールは防げない。関連
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Documentation
Chores