Repository navigation
feat: context management, clean restart and session folder fixes - #23
Merged
Merged
Conversation
Context management (off by default, in Settings): the main Claude session can keep state.md and logbook.md in <workspace>/.promptops/sessions/<id>/. It is turned on per workspace from the session header, which offers to exclude the folder from git first. The instructions reach the agent through --append-system-prompt-file when the CLI accepts it, or as one message on request. Writes to those two exact files are approved (never through a symbolic link), and the state opens the handoff when the provider changes. PROMPTOPS_SESSION_STATE=0 turns the feature off. Clean restart starts a fresh conversation with the same provider from an editable handoff draft, keeping the command and arguments of the session. Fixes: a changed session folder is applied by the desktop session on the next spawn or wake instead of being written back on exit; the heavy-context notice starts its cooldown when it is shown; sidebar agent tooltips open beside the row and long tooltips are cut at eight lines. The termd resize test now also runs on Windows. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Luca Mangiacotti <luca.mangiacotti@shellonback.com>
canonicalize answers with the verbatim prefix on Windows, so the approved path never matched and every state save asked for permission. Paths are now compared without the prefix and without case there; the test uses a real canonical base instead of /w. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: LMG <luca.mangiacotti@shellonback.com>
lucamangiacotti-dev
deleted the
feat/context-management-session-state
branch
November 15, 2026 00:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
state.mdandlogbook.mdin<workspace>/.promptops/sessions/<id>/. It is turned on per workspace from the notebook icon in the session header, which first offers to exclude the folder from git (.git/info/excludeor.gitignore). The instructions reach the agent through--append-system-prompt-filewhen the CLI accepts it, or as one message on request. Writes to those two exact files are approved, never through a symbolic link. The state opens the handoff when the provider changes. Everything stays on the device;PROMPTOPS_SESSION_STATE=0turns it off.appTooltipPlacement="right"), and long tooltips are cut at eight lines.Left out
--settings): this repository already passes the hooks with--settingsthrough its own implementation and private-file helpers. Aligning the two is a separate change.200response without a list in the sessions, workspaces and folders services: they protect an HTTP client; here the lists come from the local store throughDataBackend.desktop-update.service.ts, so it needs its own adaptation.windows_shells.rs:#[ignore]d, Windows-only tests that could not be compiled or run here.codex_rollout.rs: nothing reads them yet, so they would only add dead code under-D warnings.Testing
ng test: 657 of 657 (2 new specs for the long-text dialog)ng build --configuration=desktopcargo check,cargo fmt --check(app and termd),cargo clippy --lib --all-targets -- -D warningscargo test --lib: 557 passed, 1 failed locally (db::tests::mongo_spec_script_carries_the_spec_as_data, a broken localmongoshinstall; not touched by this change); the 12 tests of the touched modules passtermd
cargo test: 14 of 14 end-to-end tests, including the resize testNot yet tried in the running app.
Windows: the approval of
state.md/logbook.mdnow compares real paths without the verbatim prefix (\\?\) and without case, so it works on Windows too; the test builds its paths from a real folder.Replaces #22 (same commits, branch renamed after what it contains).
🤖 Generated with Claude Code