MCPcopy
hub / github.com/codeaashu/claude-code / flush

Function flush

src/context/stats.tsx:123–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 if ($[1] !== store) {
122 t2 = () => {
123 const flush = () => {
124 const metrics = store.getAll();
125 if (Object.keys(metrics).length > 0) {
126 saveCurrentProjectConfig(current => ({
127 ...current,
128 lastSessionMetrics: metrics
129 }));
130 }
131 };
132 process.on("exit", flush);
133 return () => {
134 process.off("exit", flush);

Callers

nothing calls this directly

Calls 3

saveCurrentProjectConfigFunction · 0.85
getAllMethod · 0.80
keysMethod · 0.80

Tested by

no test coverage detected