Skip to content

Commit 84839a8

Browse files
terisukeclaude
andcommitted
feat(opencode): add memory system and GLM thinking corruption fix
Implements cross-session persistent memory (Issues #43, #44, #45) and fixes GLM-5.1 thinking output corruption (Issue #52). Memory system: SQLite + file-based storage with auto-extraction and session-start injection, schema aligned with upstream PR anomalyco#20344. GLM fix: model-specific prompt, think tag parsing utility, and streaming repetition loop detection to prevent context exhaustion. Closes #43, Closes #44, Closes #45, Relates #52 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 869eed2 commit 84839a8

21 files changed

Lines changed: 2729 additions & 5 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
CREATE TABLE `memory` (
2+
`id` text PRIMARY KEY,
3+
`project_path` text NOT NULL,
4+
`topic` text NOT NULL,
5+
`type` text NOT NULL,
6+
`content` text NOT NULL,
7+
`session_id` text,
8+
`access_count` integer DEFAULT 0,
9+
`time_created` integer NOT NULL,
10+
`time_updated` integer NOT NULL
11+
);
12+
--> statement-breakpoint
13+
CREATE INDEX `memory_project_path_idx` ON `memory` (`project_path`);--> statement-breakpoint
14+
CREATE INDEX `memory_type_idx` ON `memory` (`type`);

0 commit comments

Comments
 (0)