mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-07 02:36:01 -10:00
chore: clear the unused agent symbols and the two lines App.tsx is over its ceiling
These block every push through lint and make check; none of them changes behaviour.
This commit is contained in:
1 parent
1923e50a34
commit
20c2705623
6 files changed
-47
No files matched your search
@@ -171,7 +171,6 @@ export function App({ hub }: { hub: HubPort }) {
|
||||
// on every usage round, and handing the sidebar that would rebuild a tree of
|
||||
// a few hundred sessions each frame — which is what its memo is there for.
|
||||
const liveIds = useCallback((ids: string[]) => ids.filter((id) => runsRef.current[id]?.live), []);
|
||||
|
||||
const { listedIds, noteReport } = useLiveGrace(runsRef, runs);
|
||||
|
||||
const onReport = useCallback((id: string, next: PaneReport) => {
|
||||
@@ -195,7 +194,6 @@ export function App({ hub }: { hub: HubPort }) {
|
||||
useEffect(() => {
|
||||
setReport(reportsRef.current[active] ?? NO_REPORT);
|
||||
}, [active]);
|
||||
|
||||
const paging = useMemo<TreePaging>(
|
||||
() => ({
|
||||
more: (root) => treeWindow.grow(root, readTree),
|
||||
|
||||
@@ -107,14 +107,6 @@ func horizonSession(c retrievalCarrier, turns int) (*sessionstore.Session, int)
|
||||
return &sessionstore.Session{Messages: msgs}, at
|
||||
}
|
||||
|
||||
// growSession adds another generation's worth of foldable work.
|
||||
func growSession(a *Agent, gen int) {
|
||||
for i := range 6 {
|
||||
a.sess.conversation.Add(provider.Message{Role: provider.RoleAssistant, Content: strings.Repeat("word ", 400)})
|
||||
a.sess.conversation.Add(provider.Message{Role: provider.RoleUser, Content: fmt.Sprintf("gen %d step %d", gen, i)})
|
||||
}
|
||||
}
|
||||
|
||||
func hitRank(res tool.RecallResult, want int) int {
|
||||
for i, h := range res.Hits {
|
||||
if h.Position == want {
|
||||
|
||||
@@ -36,11 +36,3 @@ func TestLargeFixedPrefixDoesNotRefuseCompaction(t *testing.T) {
|
||||
t.Fatalf("compaction refused a prefix that fits: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func shortText(chars int) string {
|
||||
b := make([]byte, chars)
|
||||
for i := range b {
|
||||
b[i] = 'x'
|
||||
}
|
||||
return string(b)
|
||||
}
|
||||
@@ -8,8 +8,6 @@ import (
|
||||
"reasonix/internal/contract/provider"
|
||||
)
|
||||
|
||||
const testGoalBlock = "<active-goal>\nship the parser\n\nGoal mode: pursue this goal autonomously.\n</active-goal>"
|
||||
|
||||
// The newest block of each variant survives; older ones of that same variant go.
|
||||
// A short reminder and the full statement it points at are different variants,
|
||||
// so the reminder must never displace the contract.
|
||||
|
||||
@@ -176,16 +176,6 @@ func (s requestCalibrationShape) plus(o requestCalibrationShape) requestCalibrat
|
||||
}
|
||||
}
|
||||
|
||||
func (s requestCalibrationShape) minus(o requestCalibrationShape) requestCalibrationShape {
|
||||
return requestCalibrationShape{
|
||||
requestChars: s.requestChars - o.requestChars,
|
||||
compactChars: s.compactChars - o.compactChars,
|
||||
cjkRunes: s.cjkRunes - o.cjkRunes,
|
||||
cjkBytes: s.cjkBytes - o.cjkBytes,
|
||||
imageTokens: s.imageTokens - o.imageTokens,
|
||||
}
|
||||
}
|
||||
|
||||
// messageCalibrationShape counts one message's shared-window text plus only the
|
||||
// replay fields the active provider declares, keeping omitted bytes out of the
|
||||
// ratio. It is additive: requestCalibrationShapeWithPolicy is this sum over a
|
||||
|
||||
@@ -193,23 +193,6 @@ func TestCompactToProjectionLeavesCanonicalIntact(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func earlyUserPrefix(msgs []provider.Message) string {
|
||||
var b strings.Builder
|
||||
for _, m := range msgs {
|
||||
if m.Role == provider.RoleSystem {
|
||||
continue
|
||||
}
|
||||
if isCompactionSummary(m) {
|
||||
break
|
||||
}
|
||||
if m.Role == provider.RoleUser {
|
||||
b.WriteString(m.Content)
|
||||
b.WriteByte('\n')
|
||||
}
|
||||
}
|
||||
return b.String()
|
||||
}
|
||||
|
||||
// Checkpoint installation no longer writes archive copies — the canonical
|
||||
// transcript is the lossless store. ArchiveDir misconfiguration must not block
|
||||
// a successful summary install.
|
||||
|
||||
Reference in new issue
Block a user