Skip to content

feat(config): a suggestions option that stops backend generation - #20

Open
Antisophy wants to merge 1 commit into
CyberShadow:masterfrom
Antisophy:feat/suggestions-config
Open

feat(config): a suggestions option that stops backend generation#20
Antisophy wants to merge 1 commit into
CyberShadow:masterfrom
Antisophy:feat/suggestions-config

Conversation

@Antisophy

@Antisophy Antisophy commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Next-message suggestions cost a small-model one-shot at every turn end and on opening a live task, whether or not anyone reads them. A top-level suggestions: false now stops the backend from creating them at all, gated inside generateSuggestions so every trigger site goes quiet with one check; the suggestion bar simply never populates. The option is deliberately not under gui:, since it stops the work, not the display. Title generation is separate and unaffected: new tasks still get auto-titles. Default unchanged (enabled).

The spec drives two full turns with suggestions disabled and asserts the bar stays empty; the second turn bounds the wait without a wall-clock sleep, since the generation one-shot answers from the same mock the turns do.

Next-message suggestions cost a small-model one-shot at every turn end
and on opening a live task, whether or not anyone reads them. A
top-level `suggestions: false` now stops the backend from creating them
at all, gated inside generateSuggestions so every trigger site goes
quiet with one check; the suggestion bar simply never populates. The
option is deliberately not under gui:, since it stops the work, not the
display. Title generation is separate and unaffected: new tasks still
get auto-titles. Default unchanged (enabled).

The spec drives two full turns with suggestions disabled and asserts
the bar stays empty; the second turn bounds the wait without a
wall-clock sleep, since the generation one-shot answers from the same
mock the turns do.

@CyberShadow CyberShadow left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objections to the idea - just implementation nits.

/// Generate next-message suggestions (a small-model one-shot at each turn
/// end and on opening a live task). Set false to stop the backend from
/// creating them at all; title generation is separate and unaffected.
@Optional SetInfo!bool suggestions;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just do @Optional bool suggestions = true; ?


void generateSuggestions(int tid)
{
if (host_.suggestionsEnabled !is null && !host_.suggestionsEnabled())

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessarily defensive - will never be null?

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