feat(hero_code): port session compaction + scratchpad/docgen features onto migrated stack #20

Merged
omarz merged 1 commit from kimi-service-integration into development 2026-06-18 14:32:51 +00:00
Member

Re-apply the features from development_good that were stranded on the
pre-migration layout onto the migrated oschema-first main domain.

Backend:

  • session.compact RPC: summarise conversation history with Claude and
    replace messages with a single system summary
  • agent.execute appends prior conversation history; rejects with
    HISTORY_TOO_LARGE (-32004) past a 50k-char budget
  • agent.execution_logs falls back to the persisted assistant message
    when the in-memory run slot is gone (e.g. server restart)
  • scratchpad.delete_path RPC: delete a single file/dir within a scratchpad
  • sessions DB: clear_messages() + get_assistant_message_for_execution()
  • schema + generated openrpc spec updated for both new methods

Frontend (admin):

  • agent tab shows a Compact banner on HISTORY_TOO_LARGE, then retries
  • editor↔markdown-preview scroll sync; word-wrap for .md files
  • doc generator title-page option (--output-name / --title / --no-title)
  • job-poll badge ordering fix
  • scratchpad tree: delete file/folder context-menu entries
  • wrapped-method allowlist updated for the two new RPCs

Note: committed alongside the in-progress kimi service-integration work
already present in this worktree (agents.js mixes both).

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

Re-apply the features from development_good that were stranded on the pre-migration layout onto the migrated oschema-first `main` domain. Backend: - session.compact RPC: summarise conversation history with Claude and replace messages with a single system summary - agent.execute appends prior conversation history; rejects with HISTORY_TOO_LARGE (-32004) past a 50k-char budget - agent.execution_logs falls back to the persisted assistant message when the in-memory run slot is gone (e.g. server restart) - scratchpad.delete_path RPC: delete a single file/dir within a scratchpad - sessions DB: clear_messages() + get_assistant_message_for_execution() - schema + generated openrpc spec updated for both new methods Frontend (admin): - agent tab shows a Compact banner on HISTORY_TOO_LARGE, then retries - editor↔markdown-preview scroll sync; word-wrap for .md files - doc generator title-page option (--output-name / --title / --no-title) - job-poll badge ordering fix - scratchpad tree: delete file/folder context-menu entries - wrapped-method allowlist updated for the two new RPCs Note: committed alongside the in-progress kimi service-integration work already present in this worktree (agents.js mixes both). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat(hero_code): port session compaction + scratchpad/docgen features onto migrated stack
Some checks failed
Build and Test / build (pull_request) Failing after 6s
Tests / test (pull_request) Failing after 12s
Tests / test (push) Failing after 13s
Build and Test / build (push) Failing after 17s
lab release / release (push) Has been cancelled
489e63aafd
Re-apply the features from development_good that were stranded on the
pre-migration layout onto the migrated oschema-first `main` domain.

Backend:
- session.compact RPC: summarise conversation history with Claude and
  replace messages with a single system summary
- agent.execute appends prior conversation history; rejects with
  HISTORY_TOO_LARGE (-32004) past a 50k-char budget
- agent.execution_logs falls back to the persisted assistant message
  when the in-memory run slot is gone (e.g. server restart)
- scratchpad.delete_path RPC: delete a single file/dir within a scratchpad
- sessions DB: clear_messages() + get_assistant_message_for_execution()
- schema + generated openrpc spec updated for both new methods

Frontend (admin):
- agent tab shows a Compact banner on HISTORY_TOO_LARGE, then retries
- editor↔markdown-preview scroll sync; word-wrap for .md files
- doc generator title-page option (--output-name / --title / --no-title)
- job-poll badge ordering fix
- scratchpad tree: delete file/folder context-menu entries
- wrapped-method allowlist updated for the two new RPCs

Note: committed alongside the in-progress kimi service-integration work
already present in this worktree (agents.js mixes both).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
omarz merged commit 489e63aafd into development 2026-06-18 14:32:51 +00:00
omarz deleted branch kimi-service-integration 2026-06-18 14:32:52 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_code!20
No description provided.