Skip to content

Add suggestion acceptance behavior settings #10

@FuJacob

Description

@FuJacob

Problem

Tabby currently has a fixed acceptance policy for how much text is inserted when the user accepts a suggestion. Different users and writing contexts may prefer accepting one word, one phrase/chunk, or the full suggestion.

Goal

Let users configure how much of a suggestion is accepted per accept action.

Proposed Scope

  • Add an acceptance behavior setting with options such as:
    • One word
    • One phrase/chunk
    • Full suggestion
  • Update SuggestionSessionReconciler.nextAcceptanceChunk or equivalent acceptance policy to honor the setting.
  • Keep existing partial-session reconciliation working for all acceptance modes.
  • Surface the setting in Settings and/or the menu bar.
  • Make the default match current behavior unless we intentionally choose a better default.

Acceptance Criteria

  • Users can choose the amount accepted per shortcut press.
  • One-word, chunk, and full-suggestion modes work without breaking session reconciliation.
  • The selected behavior persists across app restarts.
  • The overlay and diagnostics still reflect the remaining suggestion after partial acceptance.
  • Pass-through behavior remains unchanged when no valid suggestion is ready.

Open Questions

  • What exactly should count as a “phrase/chunk”?
  • Should acceptance behavior be global, per app, or per instruction profile?
  • Should full-suggestion acceptance be disabled for very long suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uiMenu bar, overlay, settings surfacesenhancementNew feature or requestgood first issueGood for newcomers

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions