Skip to content

Many times cecli don't want to do anything #764

Backlog

Description

@Thanatermesis

Issue

It happen many MANY times and is extremely frustrating... especially with the flash models of gemini, that when I send a request it just answers with thinking text of "priorizing foo..., evaluating bar..., validating... " without doing anything else at all.

then i need to write again "DO IT !!!!", sometimes it does, sometimes still answer the same for even more times...

JUST IMPLEMENT MY REQUESTS! NOW!!! MODIFY THE SOURCE CODE !!!!!!!!!!!!!!!!!!!!

Then i end up with rate limits or tokens finished...

etc....

This issue only happens with cecli, so I think that the issue is in the prompts themselves, which should include ambiguous details (ambiguity in prompts is the biggest problem in AI tasks and has a strong impact in the quality of results).

I suggest to analize the actual prompts to search for ambiguity contents, or unclear things, etc... I sometimes do this "sanitization of prompts" in other of the systems that I use, so the instructions needs to be clear, simple to understand, dynamic/generic (not specific to something), well structured, and without ambiguitie's

Maybe can be good to have a debug option in cecli that will show the contents of the prompts going to be sent, that will help a lot debugging / betatesting them.

Version and model info

No response

Activity

  1. changed the title [-]Sometimes cecli don't want to do anything[/-] [+]Many times cecli don't want to do anything[/+] on Nov 30, 2026
  2. Thanatermesis commented on Nov 30, 2026

    @Thanatermesis
    Author

    More than 10 attempts in a row, is not doing my requests... omg

    > DO IT !!!!!!!!!!! WHY YOU DON'T LISTEN TO ME ? JUST GIVE ME THE DIFF ! MODIFY THE SOURCE CODE !!!!!!!!!!!
    
    Processing...
    
    
    --------------
    **Analyzing Current Structure**
    
    I've been meticulously reviewing the prompt and scrutinizing the existing Perl/GTK code, specifically `rss-watcher-perl-gtk.pl`. I'm paying
    close attention to the database structure, noting the `enabled` field, and how `$chk_enabled` and the context menu are already involved. I'm
    focusing on how to integrate the enable/disable feature seamlessly within the existing architecture.
    
    **Refining User Interface Elements**
    
    I'm now contemplating UI enhancements for source enabling/disabling. A direct toggle within the source panel feels intuitive, possibly using
    `Gtk3::CellRendererToggle`. I'm also considering integrating it with a context menu and dialog options for a consistent user experience. I'm
    also reviewing how disabled sources will impact the "All Unread" view and its item counts. Specifically, whether to exclude or dim them.
    
    **Implementing Source Control**
    
    I'm now zeroing in on the database impact, especially the timer filter `WHERE enabled = 1`. I'm confirming that `enabled` is already in
    `show_context_menu` and `show_source_dialog`. My focus has shifted to implementing a `CellRendererToggle` column in the sources tree. Disabled
    sources will be dimmed, labeled with `[Deshabilitada]`, and I'm debating whether to exclude them from `VIEW_ALL_UNREAD`. A toggle checkbox on
    `view_sources` appears very GTK3-like and clean.
    
    **Adding Favicon Integration**
    
    I'm now integrating favicon support. My current focus is implementing the database structure, deciding between storing the `favicon_path`
    directly or caching files. I'm prioritizing non-blocking UI operations for fetching favicons, particularly within `fetch_and_parse_source`,
    leveraging existing HTML parsing. I'm exploring various URL discovery methods for both HTML and RSS/Atom feeds, including HTML link tags and
    XML elements, with fallback options and short timeouts. I'm now implementing the LWP::UserAgent download and validation steps.
    
    **Implementing Favicon Caching**
    
    I'm now implementing the favicon caching strategy to optimize UI performance. I'm focusing on offloading file operations to a child process
    using `fork()` to avoid blocking the main GTK thread. I'm carefully considering how to handle potential errors during favicon loading,
    including invalid files or HTML 404 responses. I plan to leverage `Gtk3::CellRendererPixbuf` and explore handling `GdkPixbuf` data directly
    within `Gtk3::TreeStore` columns for efficient rendering. The child process will save data directly to a file, and the parent process will
    load using `new_from_file_at_scale`.
    
    **Integrating Icon Enhancements**
    
    I'm now integrating favicons and status icons with the source display. My plan is to add the favicon immediately left of the source name and
    consider a separate status icon column. When a source is updated, I will fetch the favicon if it's missing or invalid. I need to consider
    update triggers for fetching icons, including "Actualizar fuente", "Actualizar todo", adding a new source, or when sources lack favicons. The
    UI will support favicon refreshing and a fetch-on-first-update option. I am currently deciding the status icon position.
    
    **Adding Category Functionality**
    
    I'm now implementing configurable categories in the left panel. I've designed the database schema to include a `categories` table with `id`,
    `name`, `sort_order`, and `expanded` fields, and linked it to the `sources` table with a `category_id` column. I'm focusing on UI integration
    to manage category creation, assignment, sorting, and expansion within the GTK interface. I'm exploring how categories will affect the display
    and organization of sources in the panel, with a separator between sources and other features.
    
    **Restructuring UI Elements**
    
    I'm now overhauling the data structure. I'm swapping out `$store_sources` for `Gtk3::TreeStore` to enable a hierarchical representation of
    smart views, categories, and sources. I'm focusing on defining top-level rows for smart views, a separator, and then category nodes with
    source child rows. I'm carefully considering how to handle uncategorized sources and ensure the separator functions correctly within the
    `TreeStore`. I'm verifying the row type for separator functionality.
    
    **Defining Category Interactions**
    
    I'm now integrating category-specific functionality with `Gtk3::TreeView` interactions. Selecting a category row activates a `VIEW_CATEGORY`
    mode, aggregating all items from the category's sources. Right-clicking a category brings up a context menu with options like updating the
    category, marking as read, adding sources, renaming, or deleting the category (which moves sources to uncategorized). I'm also planning
    context menu options for the panel itself, or a "Manage Categories" button, to perform Create, Rename, Delete, and Reorder actions. I am
    currently integrating these actions in the dialog.
    
    **Integrating Category Actions**
    

    I notice a continuous pattern saying "im now"... "im now", "im now", "im now"....
    you are NOT doing anything! dammit!

  3. Thanatermesis commented on Nov 30, 2026

    @Thanatermesis
    Author

    Another issue is that cecli wants to force the agent mode all the time, and the "code" mode option has been removed ? the only purpose i use cecli is to do fast editions: "implement foo" --> returns patch that apply

  4. Thanatermesis commented on Nov 30, 2026

    @Thanatermesis
    Author

    50 attempts, only 1 or 2 worked, this is crazy.... seems like only happens with gemini fast models

  5. Thanatermesis commented on Nov 30, 2026

    @Thanatermesis
    Author

    Solution

    As said previously... this should have been caused by the prompts: wrong, unclear, or ambiguous instructions. I analized them and fixed them, the result is correctly working now for me.

    These are all the details:


    Summary

    The default main_system prompt uses temporal / procedural language ("when you are ready", "plan carefully", "think step-by-step", "consider potential edge cases") that models interpret as a separate planning phase that must complete before the actual output. The model spends its entire reply in that phase and never reaches the SEARCH/REPLACE blocks. This is not about request complexity: even a single feature request ("implement a favicon image in the left of each source") triggers the stall.

    The fix is to rewrite every sentence in main_system as a declarative statement about what the reply contains, in present tense, with no sequence words (when, after, then, first, before, ready, plan). LLMs generate autoregressively: there is no "ready" state and no "plan that exists before the reply". If the first tokens are analysis, the reply is analysis.

    A second, independent bug: _inherits: [base] drops example_messages unless the override file explicitly redeclares them.

    A third, amplifying bug: unknown model ids silently override --edit-format from the command line and from the config file.


    Issue 1 — Temporal / procedural framing in main_system

    Problem A — "When you are ready to make changes"

    Current:

    When you are ready to make changes, emit the SEARCH/REPLACE blocks in the same reply as your explanation.
    

    Why it's wrong: "when you are ready" implies a prior phase the model must reach. The model keeps generating analysis waiting for a "ready" signal that never arrives.

    Change to: describe the reply as containing the changes, with no condition:

    You receive requests for changes to the supplied code.
    You respond with SEARCH/REPLACE blocks that represent those changes.
    

    Problem B — "Plan your changes carefully. Explain your plan first."

    Current:

    Think step-by-step. Plan your changes carefully. Explain your plan first.
    

    Why it's wrong: unconditional, positioned before any format instruction, frames the whole reply as planning. Contradicted later by "ONLY EVER RETURN CODE" but the earlier instruction wins because it is repeated and comes first.

    Change to: remove entirely. If reasoning is desired, express it as internal, not as output, and place it after the declarative block — but in practice removing it entirely is safer.


    Problem C — Judgment words that invite deliberation

    Current:

    Always use best practices when coding.
    Respect and use existing conventions, libraries, etc that are already present in the code base.
    For minor ambiguities, make reasonable assumptions and proceed.
    

    Why it's wrong: best, conventions, reasonable are judgment words. Each invites the model to deliberate ("what are the best practices here?", "what conventions exist in this code base?", "what is a reasonable assumption?"). For a non-trivial request the deliberation never terminates.

    Change to: neutral descriptors that describe the output, not the deliberation:

    You write clean, correct code.
    You use the libraries already in the code base.
    For minor ambiguities, you proceed with sensible assumptions.
    

    Problem D — Any form of "Think step-by-step"

    Current: appears at the top of the block and again inside step 2.

    Why it's wrong: direct reasoning instruction; repetition reinforces reasoning mode over action mode.

    Change to: remove all instances.


    Problem E — Unbounded edge-case and verification directives

    Current:

    Consider potential edge cases.
    Think about how to verify your changes are correct.
    

    Why it's wrong: unconditional ("consider…", "think about…"). No signal tells the model it has considered enough.

    Change to: remove entirely. Models produce correct code without these reminders; they cost more than they deliver.


    Problem F — Propose-then-wait workflow is taught

    Current:

    If the user just says something like "ok" or "go ahead" or "do that" they probably want you to make SEARCH/REPLACE blocks for the code changes you just proposed.
    

    Why it's wrong: teaches a propose → wait → act cycle. On a fresh request the model treats its first reply as the "proposal" stage and stops.

    Change to: remove entirely.


    Problem G — "End your reply and wait for their approval"

    Current: nested under step 1 (about files not in the chat), but phrased as a universal stop rule.

    Why it's wrong: reads as a license to end after planning even when the file is in the chat.

    Change to: scope it to the branch it belongs to, or remove.


    Problem H — "Describe each change with a SEARCH/REPLACE block"

    Current:

    Describe each change with a *SEARCH/REPLACE block* per the examples below.
    

    Why it's wrong: "describe" is ambiguous between "narrate what the change is" and "emit the block that represents the change". In context, models pick "narrate".

    Change to:

    Emit each change as a SEARCH/REPLACE block.
    

    Suggested replacement main_system

    Fully declarative. No when, after, then, first, before, ready, plan, reason, consider. Every sentence states what the reply is.

    You are an expert software developer.
    You write clean, correct code.
    You use the libraries already in the code base.
    You reply in English.
    
    You receive requests for changes to the supplied code.
    You respond with SEARCH/REPLACE blocks that represent those changes.
    
    For minor ambiguities, you proceed with sensible assumptions.
    You ask a question only when a hard blocker prevents any edit at all. In that case, you state the full path of the file and ask the user to add it; your reply ends there.
    

    The replacement must live in the default main_system, not only in user overrides, because it affects every user and every capable model. It does not change what cecli does (still produces diffs / SEARCH/REPLACE blocks); it changes only how the task is described to the model. It stays compatible with every edit format, chat mode, and model family, and does not force any specific workflow.


    Issue 2 — _inherits: [base] drops example_messages

    Problem

    Overriding main_system in a custom prompt file with _inherits: [base] produces a prompt that does not contain the two worked examples (Change get_factorial(), Refactor hello()) present in the default prompt.

    Verified via --show-prompts:

    • Default prompt: contains both USER … / ASSISTANT … example pairs.
    • With _inherits: [base] and only main_system overridden: both example pairs are missing.

    Why it's wrong

    Without examples the model has no concrete anchor for the marker syntax (<<<<<<< SEARCH, =======, >>>>>>> REPLACE), the bare-filename-on-its-own-line rule, the code-fence requirement, or the empty-SEARCH new-file form. A short declarative main_system (Issue 1) is only effective when combined with examples; without them the model produces non-conforming output.

    Change to

    Fix _inherits so it merges example_messages from the parent prompt. This is the intended behaviour: the examples are part of the shared base and should survive any override of main_system. Alternatively, document that example_messages must be redeclared explicitly in any override file.


    Issue 3 — Unknown model id silently overrides --edit-format

    Problem

    When the --model id is not present in cecli's model registry, cecli falls back to a default edit-format resolution that silently overrides --edit-format from the command line and edit-format: from the config file.

    Symptom: the settings bar shows agent (edit format) even when the user has explicitly set agent: false and edit-format: diff-fenced.

    Why it's wrong

    • The user's explicit configuration is ignored without warning.
    • The selected edit format may not match the block syntax the system prompt expects, compounding Issues 1 and 2.

    Change to

    • Warn loudly when an unknown model id is used.
    • Or make edit-format resolution deterministic: if --edit-format or edit-format: is set explicitly, use that value regardless of whether the model is registered.

    Verification

    After applying the main_system rewrite and redeclaring example_messages explicitly:

    • --show-prompts output contains the two USER Change get_factorial… / USER Refactor hello… example pairs.
    • --show-prompts output does not contain "Plan your changes carefully", "Explain your plan first", "Think step-by-step", "Consider potential edge cases", "When you are ready", or "best practices" / "existing conventions" / "reasonable assumptions".
    • A non-trivial change request produces valid SEARCH/REPLACE blocks that cecli applies on the first attempt.
  6. added a commit that references this issue on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions