Fix integration test: checkpoint.CommittedMetadata renamed to Metadata · Entire

Fix integration test: checkpoint.CommittedMetadata renamed to Metadata

fa112bc→main·

Soph·3w ago·1 file·+2 added/-2 removed

main renamed checkpoint.CommittedMetadata to checkpoint.Metadata (now a type alias for apicheckpoint.Metadata). The new cursor token condensation integration test referenced the old name and failed to compile under the integration build tag, which the textual merge could not detect.

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

Sessions

22221eafacceView transcript

Changes

1

100 unmodified lines

101
102
103
104
104
105
106
107
99 unmodified lines

207
208
209
210
210
211
212
213

100 unmodified lines

content, found := env.ReadFileFromBranch(paths.MetadataBranchName, metadataPath)
    require.True(t, found, "session metadata should exist at %s", metadataPath)

var meta checkpoint.CommittedMetadata
    var meta checkpoint.Metadata
    require.NoError(t, json.Unmarshal([]byte(content), &meta))

require.NotNilf(t, meta.TokenUsage,
99 unmodified lines

t.Helper()
    content, found := env.ReadFileFromBranch(paths.MetadataBranchName, SessionMetadataPath(checkpointID))
    require.Truef(t, found, "session metadata should exist for checkpoint %s", checkpointID)
    var meta checkpoint.CommittedMetadata
    var meta checkpoint.Metadata
    require.NoError(t, json.Unmarshal([]byte(content), &meta))
    return meta.TokenUsage
}

Mcmd/entire/cli/integration_test/cursor_token_condensation_test.go+2/-2