zchee / zchee/ganja-code

Reloadable auto_compact_threshold

Open
#87 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

idea size:S verdict:do
Dominant language
Rust
Stars
2
Forks
0
Avg merge
1h
Merged PRs (30d)
17

Description

What it does

Lets the /plugin dialog's Reload pick up a changed auto_compact_threshold without a restart, with the context meter and /context reading the same value.

Source

ganja-code-6ojt (auto_compact_threshold reloadable without a restart).

The bead is closed when this issue is published, with its external reference pointing here (#38).

File and line references in this issue are to main as of 75a7a92.

Against the three criteria

  • Direction (README): The README says nothing about compaction or resuming.
  • Today's terminal users: The value is read once, when the engine is built (D566). The bead itself calls it low priority: the key is set once per machine in practice.
  • Evidence: The D566 review accepted the restart as a known limit; no report asks for more.

Depends on

No other idea. It needs a sixth D474 reload seam (an atomic is enough) and an amendment to RELOAD_SPLIT (crates/ganja-tui/src/app.rs:267) with its pinned test.

Verdict

  • Verdict: do
  • Size: S — one commit, no plan.
  • Exception to the probe rule: no.
  • Date: 2026-09-19
  • Verdict ticket: #42

Theme: #56

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the reload seams and the RELOAD_SPLIT amendment in crates/ganja-tui/src/app.rs:267, then trace where auto_compact_threshold feeds the context meter and /context. Add the sixth reload seam and update its pinned test so the /plugin Reload action uses the changed value without a restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.