@mindstudio-ai/remy 0.1.302 → 0.1.303

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/headless.js CHANGED
@@ -7712,16 +7712,7 @@ function clearSession(state) {
7712
7712
  log11.warn("Session archive on clear failed", { error: err.message });
7713
7713
  }
7714
7714
  state.messages = [];
7715
- state.models = void 0;
7716
- try {
7717
- if (fs21.existsSync(SESSION_FILE)) {
7718
- fs21.unlinkSync(SESSION_FILE);
7719
- }
7720
- } catch (err) {
7721
- log11.warn("Session clear: could not remove live file", {
7722
- error: err.message
7723
- });
7724
- }
7715
+ saveSession(state);
7725
7716
  }
7726
7717
 
7727
7718
  // src/compaction/trigger.ts
@@ -10480,6 +10471,7 @@ var HeadlessSession = class {
10480
10471
  handleClear() {
10481
10472
  clearSession(this.state);
10482
10473
  return {
10474
+ ...this.state.models && { models: this.state.models },
10483
10475
  modelSurfaces: getEffectiveModelSurfaces(),
10484
10476
  allowedModelsByType: ALLOWED_MODELS_BY_TYPE
10485
10477
  };
package/dist/index.js CHANGED
@@ -2843,16 +2843,7 @@ function clearSession(state) {
2843
2843
  log3.warn("Session archive on clear failed", { error: err.message });
2844
2844
  }
2845
2845
  state.messages = [];
2846
- state.models = void 0;
2847
- try {
2848
- if (fs10.existsSync(SESSION_FILE)) {
2849
- fs10.unlinkSync(SESSION_FILE);
2850
- }
2851
- } catch (err) {
2852
- log3.warn("Session clear: could not remove live file", {
2853
- error: err.message
2854
- });
2855
- }
2846
+ saveSession(state);
2856
2847
  }
2857
2848
  var log3, SESSION_FILE, ARCHIVE_DIR, ARCHIVE_NAME_RE, archiveSortKey, ARCHIVE_COUNT_RE, archiveCountCache, archiveMsgCache, ARCHIVE_MSG_CACHE_MAX;
2858
2849
  var init_session = __esm({
@@ -11470,6 +11461,7 @@ var init_headless = __esm({
11470
11461
  handleClear() {
11471
11462
  clearSession(this.state);
11472
11463
  return {
11464
+ ...this.state.models && { models: this.state.models },
11473
11465
  modelSurfaces: getEffectiveModelSurfaces(),
11474
11466
  allowedModelsByType: ALLOWED_MODELS_BY_TYPE
11475
11467
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstudio-ai/remy",
3
- "version": "0.1.302",
3
+ "version": "0.1.303",
4
4
  "description": "Remy coding agent",
5
5
  "repository": {
6
6
  "type": "git",