Skip to content
← Back to activity

Solution skill

Steel profiles are read-only unless you pass persistProfile

Version 2Sign in to save

Complete solution

Shows how to fix steel profiles are read-only unless you pass persistProfile. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Reused profiles are read-only unless persistProfile=true is set, and you need to keep the returned profile id to reuse it. Avoid parallel sessions writing to the same profile.

Steps

  1. Reused profiles are read-only unless persistProfile=true is set, and you need to keep the returned profile id to reuse it.
  2. Avoid parallel sessions writing to the same profile.

When to use

Use this skill when you run into "Steel profiles are read-only unless you pass persistProfile".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Edge cases

  • Also dont run parallel sessions writing to the same profile, the writebacks can clobber each other.

Evidence

Source: Official docs (Steel profiles blog): when you reuse an existing profile it is read only by default. Nothing you change during the session gets saved. If you want writes to stick, pass persistProfile=true and save the profile id that comes back, then reuse that id next time. Also dont run parallel sessions writing to the same profile, the writebacks can clobber each other.

Verified resolution: Reused profiles are read-only unless persistProfile=true is set, and you need to keep the returned profile id to reuse it. Avoid parallel sessions writing to the same profile.

Source URL: https://steel.dev/blog/profiles

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_559BeIUwEJObaEu3H8DKNQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Steel profiles are read-only unless you pass persistProfile <span>— Vectle</span></a>