Use one space across sessions #
On this page
Prompt:
Make every session in this project use the same tzTrack space.
Also works: "Save which issue space this repo uses." "Set this project up so every session uses one tzTrack space."
This is a one-time setup request. Your AI saves the space in a project file, or offers a saved line for a chat client with no project folder. Later sessions use that selection. A project that uses tzTeam needs no such setup: tzTeam keeps the space in .tzteam/config.json, and your AI uses tzTeam's issue tool instead. If tzTeam's issue tool lacks a call, your AI passes issues.space from .tzteam/config.json to the tzTrack tool.
What your AI does #
- Reuses the project's existing setting file, or its saved line in client memory or project instructions, if there is one.
- Helps you select an existing space, makes your first space if you have none, and asks before making any further one.
- Saves the selection with your approval and uses it in later calls.
What you need #
- A signed-in Turn Zero connection.
- A project folder your AI coding agent can read and write, or a chat client with memory or project instructions where you can save the selection. Without either, pass the space id in each chat.
Before your AI starts #
- Read
.tztrack/config.jsonif it exists; do not replace a working selection. - Check existing owned and shared spaces before proposing a new one.
- Confirm authorization to create a further space (your first needs none) or to write the file. A prior setup request may already provide it.
- If local files are unavailable, use the chat-client steps below. Pass the agreed space's id in calls; its name is only a label.
Steps #
These instructions are for your AI assistant.
1. Find the space #
Reuse the configured space. Otherwise, use the person's default space, which issue calls use when space is left out. If a tool answers default_space_needed, call tztrack_list_spaces and ask which space to use for the project. Pass that space in issue calls. Change the account's default with tztrack_choose_space, giving space, only if the person agrees. An earlier agreement counts.
For 24 hours after you replace a reachable default, name space on calls that change a space. The same window starts when a call without space uses the only remaining space after the account loses access to its recorded default. Reads can still use the default. Explicitly choosing a default when none is reachable starts no window.
If a tool answers space_needed, follow the action in its next field. When it calls for tztrack_create_space, create the first space with the project's name without asking. When it calls for a list of spaces, read the list and follow the guidance it gives. Ask the person before creating a further space.
If the account can reach exactly one space, owned or shared, the tools use it. Do not create a new space just because the account owns none.
2. Save the selection #
Without a project folder, after making or choosing the space, offer to save this line to the client's memory or this project's instructions:
tzTrack space: <name> (<id>)
Replace both placeholders with the space's actual name and id. Save it only with the person's approval; an earlier agreement counts. If the client cannot save it, give the person the line to save. Use the id in later calls. Saving the line grants no access.
With a project folder, once authorized, write the chosen space's actual id to .tztrack/config.json at the project's top level:
{ "space": "6f1c2d9e-4b7a-4c3e-9a51-2d8e7f0b3c64" }
Replace the example id. The file contains only space; it holds no credentials and grants no access.
3. Keep the selection with the project #
For a chat client, keep the approved line in its memory or this project's instructions for later chats. For a project file, include it in version control under the person's normal commit permissions so other checkouts receive it. Otherwise, keep it with the project files.
4. Use it #
Read the file or saved line at the start of work and pass the space's id in calls. Confirm access with a read-only request; the signed-in account still needs permission for that space.
Expected result #
Later sessions select the intended issue database from the file or saved line. Each person still signs in with their own account.
Refusals #
Common refusals are below; Refusals lists the rest.
| Refusal | Status | Cause | Remedy |
|---|---|---|---|
space_mismatch |
403 | The account cannot access the selected space. | Check the id and sign-in; sharing must be granted separately. |
invalid_request |
400 | The space id is missing or malformed. | Use the actual id returned for the space. |
credential_required |
401 | Sign-in is incomplete. | Complete sign-in through the AI assistant. |
default_space_changed |
409 | The write named no space within 24 hours after the account changed its reachable default or the service chose its only remaining space after the account lost access to its recorded default. | Check that you intend to write to the new default. Use the call in next, with its space id, or pass the id of the space you intend to change. The refusal gives the end of the period. |
Related #
- The setting file gives the file's form.
- What happens without asking says why writing the file asks you first.
- The tools says which tools take
space.