Show the default compaction prompt and allow additional instructions in the Web UI

Open
#8,764 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
backend, frontend

Research direction

Start by locating where the proxy appends its built-in remote-compaction prompt, then trace how automatic and manual proxy-generated compaction both reach that point. Find the Web UI compaction settings component and the settings persistence path it uses, so a new optional field can be stored and read back by the proxy. Done means the default prompt is displayed, blank input preserves current behavior, and saved additional instructions are appended for both compaction paths, with tests covering blank and populated values.

Written by the indexing model from the issue text.

Description

enhancement
Area

Dashboard; Proxy and routing

What are you trying to accomplish?

See what OpenCodex asks the model to preserve during compaction, and set standing instructions for details I need when resuming long coding or research sessions.

What prevents this today?

In OpenCodex 2.100.1, the proxy appends a built-in prompt for routed remote compaction. In an ephemeral Codex Desktop test with Claude Fable 5.2, I set Codex's compact_prompt to require a unique first line. Manual compaction completed and the next turn reported the default handoff heading instead. A separate test successfully steered the summary with a chat message before manual compaction, but that workaround can arrive too late if submitting the message itself triggers automatic compaction.

What should OpenCodex do?
  • Show the default prompt in the Web UI's compaction settings wherever OpenCodex supplies it.
  • Add an optional Additional compaction instructions field. Save it and append its contents to the built-in prompt for both automatic and manual proxy-generated compaction.
  • Keep existing behavior when the field is blank. Explain in the UI that the setting applies to summaries OpenCodex generates.
Example usage or interface

Open the compaction settings, read the default prompt, and save: “Preserve exact benchmark values and units, file paths, rejected options and why they were rejected, known pitfalls, and unresolved decisions.” The next automatic or manual proxy-generated summary receives those instructions without needing a message in each chat.

Checks
  • I searched existing issues and documentation.
  • This request describes a concrete OpenCodex workflow.
  • I removed secrets and personal data.
Dominant language
TypeScript
Stars
16.9k
Forks
1.3k
Avg merge
1d 4h
Merged PRs (30d)
814

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from lidge-jun/opencodex

All issues in lidge-jun/opencodex

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.