Skip to content

feat(runtime): make resident access mode explicit for locks and reads#73

Open
kuishou68 wants to merge 1 commit intoiOfficeAI:mainfrom
kuishou68:upstream/resident-access-modes
Open

feat(runtime): make resident access mode explicit for locks and reads#73
kuishou68 wants to merge 1 commit intoiOfficeAI:mainfrom
kuishou68:upstream/resident-access-modes

Conversation

@kuishou68
Copy link
Copy Markdown
Contributor

Summary

  • add lazy-open resident mode gated by OFFICECLI_NO_PERSISTENT_LOCK
  • classify lazy resident commands into read-only vs editable open paths instead of always using editable access
  • add OFFICECLI_SKIP_RESIDENT as an explicit opt-out for callers that need direct file access even when a resident exists

Why

Today callers that embed OfficeCLI can get stuck between long-lived file locks and read commands that accidentally pay write-path normalization costs. This change keeps the resident useful for IPC and caching while making lock behavior and read semantics explicit.

Validation

  • dotnet restore src/officecli/officecli.csproj -nologo
  • dotnet build src/officecli/officecli.csproj -nologo --no-restore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant