Skip to content

feat: modern-monaco - inline AI completions (ghost text)#11

Draft
NEXT-STANDARD wants to merge 3 commits intomainfrom
claude/friendly-cori-GuPBh
Draft

feat: modern-monaco - inline AI completions (ghost text)#11
NEXT-STANDARD wants to merge 3 commits intomainfrom
claude/friendly-cori-GuPBh

Conversation

@NEXT-STANDARD
Copy link
Copy Markdown
Owner

Summary

  • src/utils/inlineCompletionProvider.ts を新規作成:Monaco 0.55 の InlineCompletionsProvider API を実装
  • src/components/SFEditor.tsx を更新:プロバイダーの登録 + inlineSuggest オプション追加
  • src/components/app/AppContent.tsx を更新:inlineCompletionEnabled={app.settings.aiEnabled} を渡す

実装詳細

Monaco Editor 0.55 の registerInlineCompletionsProvider を使って Copilot スタイルのゴーストテキスト補完を実装。タイプ停止後 800ms でデバウンスし、electronAPI.ai.chat() 経由で AI を呼び出して補完候補を生成。設定の aiEnabledtrue の場合のみ有効になる。

Improvement Loop

  • Cycle: 25
  • Task: modern-monaco
  • Score: 10/10 (delta: +4)

Test plan

  • AI API キーを設定し aiEnabled = true でインライン補完が ghost text として表示されることを確認
  • aiEnabled = false の場合は ghost text が表示されないことを確認
  • npm run build が通ることを確認
  • lint エラーが増加していないことを確認

Generated by Claude Code

claude added 3 commits April 27, 2026 00:19
…nsProvider

Implements Monaco 0.55's InlineCompletionsProvider API for ghost-text
AI code completions. Completions are triggered automatically (800ms debounce)
or explicitly (Ctrl+I), calling the existing AI backend via electronAPI.ai.chat.
Enabled when aiEnabled is true in settings.

Cycle score: 10/10 (delta: +4)
Co-Authored-By: SF Editor Improvement Loop <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants